Function at 0x4971c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ebed
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x582904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb4], 0
call fcn.0041dfc0
mov ecx, edi
call fcn.00498b70
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x497217
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x11
lea ecx, [edi + 0x10]
call fcn.0041cd30
test eax, eax
je 0x497229
mov byte [eax + 0x11], 0
push 0x13
lea ecx, [edi + 0x10]
call fcn.0041cd30
test eax, eax
je 0x49723b
mov byte [eax + 0x11], 0
mov ecx, 0x590630
mov dword [edi + 0xc4], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov word [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xb0], 0
call fcn.00469640
mov ecx, 0x590630
mov dword [0x590620], 0
mov dword [0x590624], 0
call fcn.0046c070
mov ecx, dword [0x584e74]
push str.main_menu
call fcn.0043fe60
push 0xc
push str.level_bronze
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00405940
push 0xc
push str.level_silver
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00405940
push 0xa
push str.level_gold
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00405940
mov esi, dword [0x584e68]
xor eax, eax
mov dword [ebp - 4], 2
mov edx, dword [esi + 0x1c]
test edx, edx
cmovle edx, eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov dword [ebp - 0xbc], edx
test eax, eax
cmovle eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0xc8], eax
inc eax
mov edi, dword [ebp - 0xc8]
cmp eax, 0xa
cmovl ecx, edx
xor edx, edx
cmp eax, 0xa
cmovl edx, eax
mov eax, dword [ebp - 0xbc]
shl eax, 3
sub eax, dword [ebp - 0xbc]
lea eax, [edi + eax*8]
mov edi, dword [ebp - 0xc0]
add eax, eax
test byte [esi + eax*8 + 0x39], 4
je 0x4973d5
lea eax, [ecx*8]
sub eax, ecx
lea eax, [edx + eax*8]
add eax, eax
test byte [esi + eax*8 + 0x39], 4
jne 0x4973d5
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc8], edx
push 0xf
push str.if_map_puzzle_y
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405940
push 0xf
push str.if_map_puzzle_x
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.00405940
mov esi, dword [0x584e58]
lea eax, [ebp - 0x88]
push ecx
mov dword [esp], 0
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.004491f0
push ecx
lea eax, [ebp - 0x70]
mov dword [esp], 0x42480000
fstp dword [ebp - 0xd8]
push eax
mov ecx, esi
call fcn.004491f0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
fstp dword [ebp - 0xdc]
cmp edx, 0x10
jb 0x49749b
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x497491
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498024
push edx
push ecx
call fcn.0050b532
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4974e8
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4974de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498029
push edx
push ecx
call fcn.0050b532
add esp, 8
mov eax, dword [0x590710]
xor ecx, ecx
sub eax, dword [0x59070c]
xor edx, edx
sar eax, 2
xor esi, esi
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xcc], esi
test eax, eax
jle 0x497e40
mov edx, eax
mov eax, dword [0x59070c]
mov edi, dword [eax + esi*4]
mov eax, dword [edi + 0x18]
shr eax, 0x17
test al, 1
jne 0x497e16
movss xmm0, dword [edi + 0x3c]
mov esi, dword [ebp - 0xc0]
addss xmm0, dword [edi + 0x28]
movss xmm1, dword [esi + 0xa8]
comiss xmm0, xmm1
ja 0x49755a
movaps xmm1, xmm0
movss dword [esi + 0xa8], xmm1
movss xmm0, dword [edi + 0x44]
addss xmm0, dword [edi + 0x28]
movss xmm1, dword [esi + 0xac]
comiss xmm1, xmm0
ja 0x49757c
movaps xmm1, xmm0
movss dword [esi + 0xac], xmm1
cmp word [edi + 0x1e], 1
jne 0x497e16
movzx eax, word [edi + 0x20]
test ax, ax
jne 0x497a1b
mov edx, dword [edi + 0x84]
mov eax, dword [edi + 0x88]
dec edx
dec eax
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb8], eax
cmp edx, 6
ja 0x497e10
cmp eax, 0xa
ja 0x497e10
mov ecx, dword [0x584e68]
cmp edx, dword [ecx + 0x1c]
jne 0x4975ed
mov esi, dword [ebp - 0xa4]
cmp eax, dword [ecx + 0x20]
mov eax, esi
mov dword [ebp - 0xa4], esi
cmove eax, edi
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xb8]
lea eax, [edx*8]
sub eax, edx
lea eax, [esi + eax*8]
mov esi, 3
shl eax, 4
mov dword [ebp - 0xc4], eax
mov dl, byte [eax + ecx + 0x39]
movzx eax, byte [eax + ecx + 0x38]
cmp eax, 3
mov byte [ebp - 0xa5], dl
cmova eax, esi
mov esi, dword [ebp - 0xc0]
test dl, 4
mov edx, dword [ebp - 0xb0]
jne 0x49783c
test eax, eax
jne 0x497874
mov eax, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0xbc]
jne 0x4976d2
cmp eax, dword [ebp - 0xc8]
jne 0x4976d2
or dword [edi + 0x18], 0x2000000
lea ecx, [ebp - 0x70]
push 0xd
push str.level_current
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405940
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call fcn.0045ce20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00403450
push edi
mov ecx, esi
call fcn.0049a220
mov eax, dword [esi + 0x84]
push ecx
mov ecx, esi
mov dword [esp], 0
movss xmm0, dword [eax + 0x28]
xorps xmm0, xmmword [0x542190]
movss dword [esi + 0x98], xmm0
call fcn.004991b0
jmp 0x497e10
cmp byte [0x591180], 0
je 0x4976e8
or dword [edi + 0x18], 0x2000000
mov ecx, dword [0x584e68]
mov byte [ebp - 0xa5], 0
cmp eax, 0xa
jne 0x4977c8
cmp edx, 5
jl 0x497746
mov al, 1
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [0x584e68]
add eax, 0xd9
test byte [eax], 4
je 0x497729
inc ecx
add eax, 0x380
cmp ecx, 5
jl 0x497711
mov eax, dword [ebp - 0xb0]
jmp 0x497731
xor al, al
mov dword [ebp - 0xb0], eax
test al, al
je 0x49776d
mov eax, 4
mov ecx, edx
shl eax, cl
or dword [esi + 0xc0], eax
jmp 0x49776d
mov ecx, edx
mov eax, 0x1000
shl eax, cl
mov ecx, dword [0x584e68]
test dword [ecx + 0x2c], eax
mov ecx, 1
movzx eax, byte [ebp - 0xa5]
cmovne eax, ecx
mov dword [ebp - 0xb0], eax
mov eax, 4
mov ecx, edx
shl eax, cl
test dword [esi + 0xc0], eax
je 0x4977b5
push edi
mov ecx, esi
mov dword [ebp - 0xd4], edi
call fcn.0049a220
mov eax, dword [esi + 0x84]
push ecx
mov ecx, esi
mov dword [esp], 0
movss xmm0, dword [eax + 0x28]
xorps xmm0, xmmword [0x542190]
movss dword [esi + 0x98], xmm0
call fcn.004991b0
mov eax, dword [ebp - 0xb0]
test al, al
je 0x4977fb
or dword [edi + 0x18], 0x2000000
jmp 0x4977ff
test eax, eax
jne 0x4977ea
test edx, edx
je 0x4977bf
lea eax, [edx*8]
sub eax, edx
shl eax, 7
mov al, byte [eax + ecx - 0x2b7]
shr al, 2
and al, 1
jmp 0x4977bb
mov edx, dword [ebp - 0xc4]
mov al, byte [edx + ecx + 0x29]
shr al, 2
and al, 1
jmp 0x4977bb
mov byte [edi + 0x5f], 0x7f
cmp dword [ebp - 0xb8], 0xa
mov ecx, str.level_unfinished
mov eax, str.level_bonus
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00403310
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.0045ce20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00403450
jmp 0x497e10
test eax, eax
jne 0x497874
push 0xb
push str.level_relax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.00405940
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0045ce20
mov byte [ebp - 4], 2
jmp 0x49790f
test byte [ebp - 0xa5], 2
je 0x4978ae
push 0xc
push str.level_record
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405940
or dword [ebp - 0xb4], 1
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
jmp 0x4978cf
lea eax, [eax + eax*2]
lea eax, [ebp + eax*8 - 0x70]
push eax
lea ecx, [ebp - 0x88]
call fcn.004054f0
or dword [ebp - 0xb4], 2
mov dword [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0045ce20
mov eax, dword [ebp - 0xb4]
test al, 2
je 0x4978fb
and eax, 0xfffffffd
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xb4], eax
call fcn.00403450
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 4], 2
test al, 1
je 0x497917
and eax, 0xfffffffe
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x70]
call fcn.00403450
or dword [edi + 0x18], 0x2000000
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xb0], eax
jne 0x497974
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0xb8], eax
jne 0x497974
cmp dword [esi + 0x84], 0
jne 0x497974
push edi
mov ecx, esi
call fcn.0049a220
mov eax, dword [esi + 0x84]
push ecx
mov ecx, esi
mov dword [esp], 0
movss xmm0, dword [eax + 0x28]
xorps xmm0, xmmword [0x542190]
movss dword [esi + 0x98], xmm0
call fcn.004991b0
mov eax, dword [0x584e68]
mov edx, dword [ebp - 0xc4]
test byte [edx + eax + 0x39], 1
je 0x497e10
push 0x10
push str.puzzle_piece_map
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405940
movss xmm1, dword [ebp - 0xd8]
lea eax, [ebp - 0xe4]
movss xmm0, dword [edi + 0x2c]
mov ecx, 0x590630
addss xmm1, dword [edi + 0x28]
addss xmm0, dword [ebp - 0xdc]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
movss dword [ebp - 0xe4], xmm1
movss dword [ebp - 0xe0], xmm0
call fcn.0046c850
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.00403450
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xac]
cmp edi, ecx
jne 0x497e1c
mov dword [ebp - 0xd0], esi
jmp 0x497e16
cmp eax, 1
jne 0x497a75
mov eax, dword [edi + 0x88]
sub eax, 2
js 0x497a69
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x584e68]
shl ecx, 7
test byte [ecx + eax + 0xc9], 4
jne 0x497a69
mov ecx, dword [ebp - 0xa4]
mov byte [edi + 0x5f], 0x7f
cmp byte [0x591180], 0
je 0x497e1c
or dword [edi + 0x18], 0x2000000
jmp 0x497e1c
or dword [edi + 0x18], 0x2000000
jmp 0x497e16
cmp eax, 2
jne 0x497b1e
mov ecx, dword [edi + 0x84]
sub ecx, 1
jns 0x497a94
xor eax, eax
mov word [edi + 0x20], ax
jmp 0x497e16
mov eax, dword [0x584e68]
mov edx, 1
shl edx, cl
test dword [eax + 0x30], edx
jne 0x497e10
and dword [edi + 0x18], 0xfff7ffff
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x497acf
push 0x28
push eax
call fcn.0050b532
add esp, 8
mov dword [edi + 0xb8], 0
push 0xa
push str.map_trophy
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405940
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.0045ce20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00403450
mov byte [edi + 0x5f], 0x7f
mov dword [edi + 0x88], 0xffffffff
jmp 0x497e10
cmp eax, 3
jne 0x497b71
mov eax, dword [edi + 0x88]
dec eax
cmp eax, 1
jl 0x497b53
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x584e68]
shl ecx, 7
test byte [ecx + eax - 0x2b7], 4
jne 0x497b53
cmp byte [0x591180], 0
je 0x497b5a
or dword [edi + 0x18], 0x2000000
mov eax, dword [edi + 0x18]
shr eax, 0x19
test al, 1
jne 0x497e16
mov byte [edi + 0x5f], 0x7f
jmp 0x497e16
cmp eax, 4
jne 0x497e16
mov eax, dword [edi + 0x84]
xor ecx, ecx
mov edx, dword [esi + 0xb4]
cmp edx, eax
mov dword [ebp - 0xb0], eax
setne cl
mov dword [ebp - 0xb8], edx
mov edx, dword [0x584e68]
lea esi, [eax*8]
sub esi, eax
dec ecx
shl esi, 7
lea eax, [ecx + 1]
cmp byte [esi + edx - 0x348], 3
cmovb eax, ecx
cmp byte [esi + edx - 0x338], 3
lea ecx, [eax + 1]
cmovb ecx, eax
cmp byte [esi + edx - 0x328], 3
lea eax, [ecx + 1]
cmovb eax, ecx
cmp byte [esi + edx - 0x318], 3
lea ecx, [eax + 1]
cmovb ecx, eax
cmp byte [esi + edx - 0x308], 3
lea eax, [ecx + 1]
cmovb eax, ecx
cmp byte [esi + edx - 0x2f8], 3
lea ecx, [eax + 1]
cmovb ecx, eax
cmp byte [esi + edx - 0x2e8], 3
lea eax, [ecx + 1]
cmovb eax, ecx
cmp byte [esi + edx - 0x2d8], 3
lea ecx, [eax + 1]
cmovb ecx, eax
cmp byte [esi + edx - 0x2c8], 3
lea eax, [ecx + 1]
cmovb eax, ecx
cmp byte [esi + edx - 0x2b8], 3
lea ecx, [eax + 1]
cmovb ecx, eax
mov dword [ebp - 0xc4], ecx
test ecx, ecx
mov ecx, edi
jg 0x497c52
push 0
call fcn.0045e850
mov esi, 1
jmp 0x497c5f
push 1
call fcn.0045e850
mov esi, dword [ebp - 0xc4]
push edi
lea ecx, [ebp - 0xa0]
call fcn.004054f0
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0xa0]
push 2
add eax, 0xfffffffe
mov byte [ebp - 4], 0xc
push eax
call fcn.0049aa70
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
push esi
cmovae eax, dword [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push str._s_02d
push eax
call fcn.00444380
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0xa0]
cmp eax, esi
je 0x497ce8
mov ecx, eax
call fcn.00403450
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x70]
call fcn.00403450
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.0045cdd0
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xb0]
jne 0x497d9f
mov esi, dword [ebp - 0xc0]
lea eax, [ebp - 0x70]
push dword [esi + 0xb4]
push str.wonder__02d
push eax
call fcn.00444380
add esp, 0xc
movss xmm2, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x50]
addss xmm2, dword [edi + 0x54]
addss xmm1, dword [edi + 0x58]
movss xmm0, dword [edi + 0x2c]
mov byte [ebp - 4], 0xd
mulss xmm2, dword [0x54159c]
mulss xmm1, dword [0x54159c]
addss xmm2, dword [edi + 0x28]
addss xmm0, xmm1
movss dword [ebp - 0xec], xmm2
movss dword [ebp - 0xe8], xmm0
cmp dword [eax + 0x14], 0x10
jb 0x497d7b
mov eax, dword [eax]
lea ecx, [ebp - 0xec]
push ecx
push eax
mov ecx, 0x590630
call fcn.0046c980
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
call fcn.00403450
mov dword [esi + 0x88], edi
xor esi, esi
mov eax, dword [0x59070c]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0xd0], edi
jne 0x497dc9
mov eax, dword [ebp - 0xc4]
cmp dword [ecx + 0x84], eax
setle al
movzx eax, al
push eax
call fcn.0045e850
inc esi
cmp esi, dword [ebp - 0xac]
jl 0x497da1
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x497e10
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x497e06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498024
push edx
push ecx
call fcn.0050b532
add esp, 8
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xcc]
inc eax
mov dword [ebp - 0xcc], eax
cmp eax, edx
jge 0x497e34
mov esi, eax
jmp 0x497524
mov edi, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xd0]
test byte [edi + 0xc0], 1
je 0x497e60
test ecx, ecx
je 0x497e59
mov dword [edi + 0xc8], ecx
mov byte [ecx + 0x5f], 0
jmp 0x497e60
and dword [edi + 0xc0], 0xfffffffe
mov ecx, dword [edi + 0xc0]
mov eax, ecx
shr eax, 1
test al, 1
je 0x497e8d
test edx, edx
je 0x497e84
mov dword [edi + 0xcc], edx
mov byte [edx + 0x5f], 0
mov ecx, dword [edi + 0xc0]
jmp 0x497e8d
and ecx, 0xfffffffd
mov dword [edi + 0xc0], ecx
mov eax, ecx
shr eax, 0xc
test al, 1
je 0x497ea2
and ecx, 0xffffefff
mov dword [edi + 0xc0], ecx
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x497ebd
mov dword [edi + 0xc8], eax
mov byte [eax + 0x5f], 0
or dword [edi + 0xc0], 1
mov ecx, dword [edi + 0x8c]
call fcn.0040ec30
push 0x58
lea ecx, [edi + 0x10]
call fcn.0041cd30
mov esi, eax
test esi, esi
je 0x497fe6
push 5
xor eax, eax
mov dword [ebp - 0x78], 0
push 0x545f20
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00403520
mov eax, dword [0x584e68]
mov ecx, dword [0x584e54]
mov byte [ebp - 4], 0xe
push dword [eax + 0x28]
lea eax, [ebp - 0x88]
push eax
call fcn.00448b70
push eax
lea eax, [ebp - 0x70]
push str._s:__d
push eax
call fcn.00444310
add esp, 0x10
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0x10
cmp edx, 8
jb 0x497f76
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497f6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49802e
push edx
push ecx
call fcn.0050b532
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0x70]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x74], 7
call dword [eax + 0x40]
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x497fd2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497fc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498033
push edx
push ecx
call fcn.0050b532
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push fcn.00403450
push 3
push 0x18
lea eax, [ebp - 0x58]
mov dword [edi + 0xb4], 0
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0050bddb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b540
mov esp, ebp
pop ebp
ret
call fcn.00511c7b
call fcn.00511c7b
call fcn.00511c7b
call fcn.00511c7b
int3