Function at 0x501060
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c842e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x501209
mov ecx, edi
call fcn.004fa920
test al, al
jne 0x5010ee
cmp byte [esp + 0xb8], al
je 0x501209
call fcn.004d8e80
test eax, eax
je 0x5010db
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.BMP:_Couldnt_save_invalid_image.
call eax
push eax
call fcn.004e6cb0
add esp, 4
jmp 0x501209
mov eax, str.BMP:_Couldnt_save_invalid_image.
push eax
call fcn.004e6cb0
add esp, 4
jmp 0x501209
mov ecx, dword [0x5f09fc]
push ecx
push 0
push str.wxBMP_FORMAT
lea ecx, [esp + 0x5c]
call fcn.004cf3b0
lea edx, [esp + 0x50]
push edx
mov ecx, edi
mov dword [esp + 0xac], 0
call fcn.004fb360
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff4
mov bl, al
mov eax, dword [ecx]
or ebp, 0xffffffff
mov dword [esp + 0xa8], ebp
cmp eax, ebp
je 0x501140
add eax, ebp
mov dword [ecx], eax
jne 0x501140
call fcn.004ce2e0
test bl, bl
je 0x5011ce
mov eax, dword [0x5f09fc]
push eax
push 0
push str.wxBMP_FORMAT
lea ecx, [esp + 0x30]
call fcn.004cf3b0
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov dword [esp + 0xac], 1
call fcn.004fc8b0
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff4
mov esi, eax
mov eax, dword [ecx]
mov dword [esp + 0x50], esi
mov dword [esp + 0xa8], ebp
cmp eax, ebp
je 0x50119b
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x50119b
call fcn.004ce2e0
cmp esi, 1
je 0x501233
cmp esi, 2
je 0x501233
cmp esi, 4
jne 0x5011ba
lea ebp, [esi + 0xc]
jmp 0x50123b
cmp esi, 8
je 0x5011db
cmp esi, 9
je 0x5011db
cmp esi, 0xa
je 0x5011db
cmp esi, 0xb
je 0x5011e0
mov esi, 0x18
mov dword [esp + 0x50], esi
xor ebp, ebp
jmp 0x50123b
cmp esi, 0xb
jne 0x501227
mov ecx, edi
call fcn.004fb200
test al, al
jne 0x501227
cmp byte [esp + 0xb8], al
je 0x501209
push 0
push str.BMP:_wxImage_doesnt_have_own_wxPalette.
call fcn.004d1250
push eax
call fcn.004e6cb0
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x14
mov esi, 8
mov ebp, 0x100
jmp 0x50123b
mov esi, 1
lea ebp, [esi + 1]
mov ecx, dword [esp + 0xb0]
call fcn.004fad30
movzx edx, si
mov ebx, eax
imul edx, ebx
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
test edx, edx
jge 0x501261
fadd qword [0x635c28]
fld qword [0x5fd498]
fmul st(1)
call fcn.0057cff0
and eax, reloc.WS2_32.dll_closesocket
jns 0x50127a
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, 4
sub ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x50128e
dec ecx
or ecx, 0xfffffffc
inc ecx
fmul qword [0x5fd490]
lea edx, [ebp*4]
fnstcw word [esp + 0x14]
mov dword [esp + 0x24], edx
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x58], eax
fldcw word [esp + 0x58]
fistp qword [esp + 0x60]
mov eax, dword [esp + 0x60]
sub ecx, eax
mov edi, ecx
mov ecx, 0x4d42
fldcw word [esp + 0x14]
mov word [esp + 0x68], cx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x5c], edi
call fcn.004fad50
mov ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], 0
imul ecx, edi
lea edx, [ecx + eax + 0x36]
mov ecx, dword [esp + 0xb0]
add eax, 0x36
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x28
call fcn.004fad30
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x7c], eax
call fcn.004fad50
cmp byte [esp + 0xbc], 0
jne 0x50132f
add eax, eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x80], eax
mov eax, 1
mov word [esp + 0x84], ax
mov word [esp + 0x86], si
mov dword [esp + 0x88], 0
call fcn.004fad50
imul eax, edi
cmp byte [esp + 0xbc], 0
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x8c], eax
mov eax, 0x48
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], 0
je 0x501430
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push 2
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x501416
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push 4
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x501416
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push 4
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x501416
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
je 0x501430
cmp byte [esp + 0xb8], 0
je 0x501209
push 0
push str.BMP:_Couldnt_write_the_file__Bitmap__header.
jmp 0x5011fb
cmp byte [esp + 0xc0], 0
jne 0x5015b9
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x50159f
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push 4
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x8a]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x94]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x98]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
jne 0x50159f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 4
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004ed180
test al, al
je 0x5015b9
cmp byte [esp + 0xb8], 0
je 0x501209
push 0
push str.BMP:_Couldnt_write_the_file__BitmapInfo__header.
jmp 0x5011fb
mov esi, dword [esp + 0x50]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edi
cmp esi, 1
je 0x501639
cmp esi, 4
je 0x501639
cmp esi, 8
je 0x501639
cmp esi, 0xb
je 0x501688
cmp esi, 9
je 0x5015f2
cmp esi, 0xa
je 0x5015f2
cmp esi, 2
jne 0x5017ce
mov eax, dword [esp + 0x24]
push eax
call fcn.0057365e
add esp, 4
xor edx, edx
cmp ebp, edi
mov dword [esp + 0x20], eax
jle 0x501739
inc eax
mov edi, edi
test edx, edx
jle 0x50161e
cmp esi, 2
jne 0x50161e
or cl, 0xff
jmp 0x501620
mov cl, dl
mov byte [eax + 1], cl
mov byte [eax], cl
mov byte [eax - 1], cl
mov byte [eax + 2], 0
inc edx
add eax, 4
cmp edx, ebp
jl 0x501610
jmp 0x501739
cmp esi, 0xb
je 0x501688
push 8
call fcn.005740d0
add esp, 4
cmp eax, edi
je 0x501657
mov dword [eax + 4], edi
mov dword [eax], vtable.wxImage.0
jmp 0x501659
xor eax, eax
cmp ebp, 0xec
mov dword [esp + 0x54], eax
mov ecx, 0xec
jg 0x50166c
mov ecx, ebp
mov edx, dword [esp + 0xb0]
push 4
push edi
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
call fcn.00536b90
add esp, 0x18
jmp 0x5016ce
push 8
call fcn.005740d0
mov esi, eax
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0xa8], 2
cmp esi, edi
je 0x5016bd
mov ecx, dword [esp + 0xb0]
call fcn.004fb220
push eax
mov ecx, esi
call fcn.00501000
jmp 0x5016bf
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0057365e
add esp, 4
xor edi, edi
mov dword [esp + 0x20], eax
test ebp, ebp
jle 0x501739
mov esi, eax
add esi, 2
lea ebx, [ebx]
lea ecx, [esp + 0x43]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x37]
push edx
lea eax, [esp + 0x43]
push eax
push edi
call fcn.00523100
test al, al
jne 0x501719
mov byte [esp + 0x43], al
mov byte [esp + 0x33], al
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x43]
mov byte [esi - 2], cl
mov dl, byte [esp + 0x33]
mov byte [esi - 1], dl
mov al, byte [esp + 0x3b]
mov byte [esi], al
mov byte [esi + 1], 0
inc edi
add esi, 4
cmp edi, ebp
jl 0x5016f0
cmp dword [esp + 0x20], 0
je 0x5017ce
cmp byte [esp + 0xc0], 0
mov esi, dword [esp + 0x20]
jne 0x5017c5
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
push esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x5017c5
cmp byte [esp + 0xb8], al
je 0x501791
push 0
push str.BMP:_Couldnt_write_RGB_color_map.
call fcn.004d1250
push eax
call fcn.004e6cb0
add esp, 0xc
push esi
call fcn.0057403d
mov ecx, dword [esp + 0x20]
add esp, 4
test ecx, ecx
je 0x5017ab
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x501209
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
jmp 0x501209
push esi
call fcn.0057403d
add esp, 4
mov ecx, dword [esp + 0xb0]
call fcn.004fb010
mov edi, dword [esp + 0x54]
mov esi, eax
test edi, edi
je 0x5017f8
mov ecx, edi
call fcn.004fa920
test al, al
je 0x5017f8
mov ecx, edi
call fcn.004fb010
mov esi, eax
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.0057365e
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x30], edi
call fcn.00576e90
mov ecx, dword [esp + 0xc0]
add esp, 0x10
call fcn.004fad50
sub eax, 1
mov dword [esp + 0x58], eax
js 0x5019a5
imul eax, ebx
lea ecx, [eax + eax*2]
lea eax, [ebx*4]
sub eax, ebx
neg eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], eax
jmp 0x501850
fld qword [0x5fd378]
mov eax, dword [esp + 0x50]
fld qword [0x5fd370]
fld qword [0x5fd368]
fld qword [0x5fd360]
cmp eax, 0x18
jne 0x5018ca
fstp st(0)
fstp st(2)
fstp st(0)
fstp st(0)
test ebx, ebx
jbe 0x501963
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
lea ecx, [esi + 1]
lea eax, [edx + ecx]
mov edx, esi
sub edx, ecx
add edx, 2
mov ebp, esi
add edi, 2
sub ebp, ecx
mov dword [esp + 0x14], edx
mov ecx, ebx
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax]
mov byte [edi - 2], dl
movzx edx, byte [eax]
mov byte [edi - 1], dl
movzx edx, byte [eax + ebp]
mov byte [edi], dl
add eax, 3
add edi, 3
sub ecx, 1
jne 0x5018a3
jmp 0x501963
cmp eax, 8
je 0x501f44
cmp eax, 0xb
je 0x501f44
cmp eax, 9
jne 0x5019d9
xor edi, edi
fstp st(0)
test ebx, ebx
jbe 0x50195d
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
lea ecx, [eax + esi]
mov ebp, 1
movzx eax, byte [ecx + ebp]
fnstcw word [esp + 0x14]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, 2
movzx eax, byte [eax + ecx]
fmul st(3)
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x14]
fmul st(3)
faddp st(1)
or eax, 0xc00
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
inc edi
add ecx, 3
fmul st(2)
faddp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov al, byte [esp + 0x18]
mov byte [edi + edx - 1], al
fldcw word [esp + 0x14]
cmp edi, ebx
jb 0x5018fd
fstp st(2)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov edi, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
push edx
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x501fa6
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
add dword [esp + 0x4c], ecx
dec eax
mov dword [esp + 0x58], eax
test eax, eax
jge 0x501850
mov esi, dword [esp + 0x54]
push edi
call fcn.0057403d
mov ecx, dword [esp + 0x20]
add esp, 4
test ecx, ecx
je 0x5019c3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
test esi, esi
je 0x5019d2
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov al, 1
jmp 0x50120b
fstp st(3)
fstp st(1)
fstp st(0)
cmp eax, 0xa
jne 0x501a12
xor eax, eax
fstp st(0)
test ebx, ebx
jbe 0x501963
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x20]
lea edi, [ecx + esi]
jmp 0x501a00
mov dl, byte [edi]
mov byte [eax + ebp], dl
inc eax
add edi, 3
cmp eax, ebx
jb 0x501a00
jmp 0x501963
cmp eax, 4
jne 0x501ab8
xor edi, edi
fstp st(0)
test ebx, ebx
jbe 0x501963
mov ebp, dword [esp + 0x4c]
lea eax, [esi + 1]
mov ecx, esi
sub ecx, eax
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x24], ecx
lea edx, [edi + 1]
cmp edx, ebx
jbe 0x501a52
mov dword [esp + 0x28], 0
jmp 0x501a74
movzx eax, byte [esi + ebp + 5]
movzx ecx, byte [esi + ebp + 4]
movzx edx, byte [esi + ebp + 3]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.005230c0
movzx eax, al
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + ebp + 1]
movzx edx, byte [eax + ecx]
movzx ecx, byte [eax]
push edx
mov edx, dword [esp + 0x28]
movzx eax, byte [eax + edx]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.005230c0
mov edx, dword [esp + 0x20]
shl al, 4
or al, byte [esp + 0x28]
mov ecx, edi
shr ecx, 1
add edi, 2
add ebp, 6
mov byte [ecx + edx], al
cmp edi, ebx
jb 0x501a41
jmp 0x501963
cmp eax, 1
jne 0x501ccc
fstp st(0)
test ebx, ebx
jbe 0x501963
mov edi, dword [esp + 0x4c]
lea eax, [esi + 1]
mov ecx, esi
sub ecx, eax
mov ebp, 2
add ecx, ebp
mov dword [esp + 0x14], ecx
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x24], ecx
lea esp, [esp]
lea edx, [ebp - 1]
cmp edx, ebx
jbe 0x501b01
mov dword [esp + 0x28], 0
jmp 0x501b26
movzx eax, byte [edi + esi + 5]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 3]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.005230c0
movzx eax, al
shl eax, 6
mov dword [esp + 0x28], eax
cmp ebp, ebx
jbe 0x501b34
mov dword [esp + 0x48], 0
jmp 0x501b59
movzx eax, byte [edi + esi + 8]
movzx ecx, byte [edi + esi + 7]
movzx edx, byte [edi + esi + 6]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.005230c0
movzx eax, al
shl eax, 5
mov dword [esp + 0x48], eax
lea eax, [ebp + 1]
cmp eax, ebx
jbe 0x501b6a
mov dword [esp + 0x44], 0
jmp 0x501b8f
movzx ecx, byte [edi + esi + 0xb]
movzx edx, byte [edi + esi + 0xa]
movzx eax, byte [edi + esi + 9]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.005230c0
movzx eax, al
shl eax, 4
mov dword [esp + 0x44], eax
lea ecx, [ebp + 2]
cmp ecx, ebx
jbe 0x501ba0
mov dword [esp + 0x2c], 0
jmp 0x501bc8
movzx edx, byte [edi + esi + 0xe]
movzx eax, byte [edi + esi + 0xd]
movzx ecx, byte [edi + esi + 0xc]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005230c0
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x2c], eax
lea edx, [ebp + 3]
cmp edx, ebx
jbe 0x501bd9
mov dword [esp + 0x34], 0
jmp 0x501bff
movzx eax, byte [edi + esi + 0x11]
movzx ecx, byte [edi + esi + 0x10]
movzx edx, byte [edi + esi + 0xf]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.005230c0
movzx eax, al
add eax, eax
add eax, eax
mov dword [esp + 0x34], eax
lea eax, [ebp + 4]
cmp eax, ebx
jbe 0x501c10
mov dword [esp + 0x3c], 0
jmp 0x501c34
movzx ecx, byte [edi + esi + 0x14]
movzx edx, byte [edi + esi + 0x13]
movzx eax, byte [edi + esi + 0x12]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.005230c0
movzx eax, al
add eax, eax
mov dword [esp + 0x3c], eax
lea ecx, [ebp + 5]
cmp ecx, ebx
jbe 0x501c45
mov dword [esp + 0x18], 0
jmp 0x501c67
movzx edx, byte [edi + esi + 0x17]
movzx eax, byte [edi + esi + 0x16]
movzx ecx, byte [edi + esi + 0x15]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005230c0
movzx edx, al
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x14]
lea eax, [edi + esi + 1]
movzx edx, byte [eax + ecx]
movzx ecx, byte [eax]
push edx
mov edx, dword [esp + 0x28]
movzx eax, byte [eax + edx]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.005230c0
mov edx, dword [esp + 0x20]
shl al, 7
or al, byte [esp + 0x28]
lea ecx, [ebp - 2]
or al, byte [esp + 0x48]
shr ecx, 3
or al, byte [esp + 0x44]
add ebp, 8
or al, byte [esp + 0x2c]
add edi, 0x18
or al, byte [esp + 0x34]
or al, byte [esp + 0x3c]
or al, byte [esp + 0x18]
mov byte [ecx + edx], al
lea eax, [ebp - 2]
cmp eax, ebx
jb 0x501af0
jmp 0x501963
cmp eax, 2
jne 0x501961
test ebx, ebx
jbe 0x501961
mov ecx, dword [esp + 0x4c]
mov edi, eax
lea edx, [edi - 1]
xor ebp, ebp
cmp edx, ebx
jbe 0x501cf0
xor edx, edx
jmp 0x501d27
movzx eax, byte [esi + ecx + 3]
fnstcw word [esp + 0x14]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmul st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov dl, byte [esp + 0x18]
movzx edx, dl
shl edx, 6
fldcw word [esp + 0x14]
cmp edi, ebx
jbe 0x501d31
mov dword [esp + 0x18], ebp
jmp 0x501d6c
movzx eax, byte [esi + ecx + 6]
fnstcw word [esp + 0x14]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmul st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov al, byte [esp + 0x18]
movzx eax, al
shl eax, 5
fldcw word [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [edi + 1]
cmp eax, ebx
jbe 0x501d79
mov dword [esp + 0x3c], ebp
jmp 0x501db4
movzx eax, byte [esi + ecx + 9]
fnstcw word [esp + 0x14]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x3c]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fmul st(1)
fldcw word [esp + 0x3c]
fistp dword [esp + 0x3c]
mov al, byte [esp + 0x3c]
movzx eax, al
shl eax, 4
fldcw word [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
cmp eax, ebx
jbe 0x501dc1
mov dword [esp + 0x34], ebp
jmp 0x501dff
movzx eax, byte [esi + ecx + 0xc]
fnstcw word [esp + 0x14]
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x34]
or eax, 0xc00
mov dword [esp + 0x34], eax
fmul st(1)
fldcw word [esp + 0x34]
fistp dword [esp + 0x34]
mov al, byte [esp + 0x34]
movzx eax, al
add eax, eax
fldcw word [esp + 0x14]
add eax, eax
add eax, eax
mov dword [esp + 0x34], eax
lea eax, [edi + 3]
cmp eax, ebx
jbe 0x501e0c
mov dword [esp + 0x2c], ebp
jmp 0x501e48
movzx eax, byte [esi + ecx + 0xf]
fnstcw word [esp + 0x14]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x2c]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fmul st(1)
fldcw word [esp + 0x2c]
fistp dword [esp + 0x2c]
mov al, byte [esp + 0x2c]
movzx eax, al
add eax, eax
fldcw word [esp + 0x14]
add eax, eax
mov dword [esp + 0x2c], eax
lea eax, [edi + 4]
cmp eax, ebx
jbe 0x501e55
mov dword [esp + 0x44], ebp
jmp 0x501e8f
movzx eax, byte [esi + ecx + 0x12]
fnstcw word [esp + 0x14]
mov dword [esp + 0x44], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x44]
or eax, 0xc00
mov dword [esp + 0x44], eax
fmul st(1)
fldcw word [esp + 0x44]
fistp dword [esp + 0x44]
mov al, byte [esp + 0x44]
movzx eax, al
add eax, eax
fldcw word [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [edi + 5]
cmp eax, ebx
jbe 0x501e9c
mov dword [esp + 0x48], ebp
jmp 0x501ed4
movzx eax, byte [esi + ecx + 0x15]
fnstcw word [esp + 0x14]
mov dword [esp + 0x48], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x48]
or eax, 0xc00
mov dword [esp + 0x48], eax
fmul st(1)
fldcw word [esp + 0x48]
fistp dword [esp + 0x48]
mov al, byte [esp + 0x48]
movzx eax, al
mov dword [esp + 0x48], eax
fldcw word [esp + 0x14]
movzx eax, byte [esi + ecx]
fnstcw word [esp + 0x14]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 0x28], eax
fmul st(1)
mov ebp, dword [esp + 0x20]
add ecx, 0x18
fldcw word [esp + 0x28]
fistp dword [esp + 0x28]
mov al, byte [esp + 0x28]
shl al, 7
or al, dl
or al, byte [esp + 0x18]
fldcw word [esp + 0x14]
lea edx, [edi - 2]
or al, byte [esp + 0x3c]
shr edx, 3
or al, byte [esp + 0x34]
add edi, 8
or al, byte [esp + 0x2c]
or al, byte [esp + 0x44]
or al, byte [esp + 0x48]
mov byte [edx + ebp], al
lea eax, [edi - 2]
cmp eax, ebx
jb 0x501ce3
jmp 0x501961
fstp st(0)
xor ebp, ebp
fstp st(2)
fstp st(0)
fstp st(0)
test ebx, ebx
jbe 0x501963
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 1]
mov edx, esi
lea edi, [ecx + eax]
sub edx, eax
add edx, 2
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
movzx ecx, byte [edi + eax]
movzx edx, byte [edi]
mov eax, dword [esp + 0x24]
push ecx
movzx ecx, byte [eax + edi]
push edx
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005230c0
mov edx, dword [esp + 0x20]
mov byte [edx + ebp], al
inc ebp
add edi, 3
cmp ebp, ebx
jb 0x501f73
jmp 0x501963
cmp byte [esp + 0xb8], 0
je 0x501fd9
call fcn.004d8e80
test eax, eax
je 0x501fcb
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x5fd328
call eax
jmp 0x501fd0
mov eax, 0x5fd328
push eax
call fcn.004e6cb0
add esp, 4
push edi
call fcn.0057403d
mov ecx, dword [esp + 0x20]
add esp, 4
test ecx, ecx
je 0x501ff3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x501209
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
jmp 0x501209