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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x5ae25c]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
jne 0x503a7a
cmp ebx, edi
mov dword [0x5ae25c], 1
je 0x503a2d
cmp byte [ebx], 0
je 0x503a2d
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x502c88
sub eax, esi
cmp eax, 0x3b5
jbe 0x502c9e
mov byte [ebx + 0x3b5], dl
push edi
lea edx, [esp + 0x60]
call fcn.005448e0
mov esi, eax
cmp esi, edi
mov dword [esp + 0xc], esi
je 0x503a2d
mov ecx, dword [esi + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x503a2d
mov eax, dword [esi + 0x708]
add eax, 0xfffffffd
cmp eax, 6
ja case.0x502cde.5
movzx eax, byte [eax + 0x503a90]
jmp dword [eax*4 + 0x503a84]
mov ecx, dword [esi + 0xbbc]
mov ecx, dword [ecx]
jmp 0x502d08
cmp dword [esi + 0x744], edi
jne 0x502d00
cmp dword [esi + 0x70c], 1
jne case.0x502cde.5
mov edx, dword [esi + 0xbbc]
mov ecx, dword [edx]
lea edx, [esp + 0x5c]
push edi
mov dword [esp + 0x18], ecx
call fcn.005448e0
mov esi, eax
cmp esi, edi
mov dword [esp + 0xc], esi
je 0x503a2d
cmp dword [esi + 0x864], edi
je 0x503a2d
mov eax, dword [esi + 0x6cc]
cmp eax, edi
je 0x502d72
cmp dword [eax + 0x44], edi
je 0x502d72
push 0x5acb8c
push ebx
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x502d72
mov eax, dword [esi + 0x6cc]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx]
push 0x5acb8c
push edx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x503a2d
cmp dword [0x5b3d50], edi
jne 0x502d8a
cmp dword [0x5b3d4c], edi
je 0x502db6
cmp dword [0x5ae24c], edi
je 0x502db6
lea edx, [esp + 0xa0]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x502d95
mov eax, dword [esi + 0x750]
push eax
push 2
xor edx, edx
lea ecx, [esp + 0xa8]
call fcn.0053b4b0
cmp dword [0x59bb40], edi
mov dword [esp + 0x58], edi
je 0x502f12
mov eax, dword [0x5ae238]
cmp eax, edi
je 0x502f12
mov ecx, dword [0x5ae234]
mov edx, dword [0x5ae23c]
mov edi, dword [0x59bcec]
mov ebx, dword [0x5ae230]
mov dword [esp + 0x48], eax
mov eax, dword [0x5ae240]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x59bcf0]
mov dword [esp + 0x44], eax
mov eax, dword [0x5ae248]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov edx, dword [0x5ae244]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x28], edx
sub ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x502e30
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0xa4]
call fcn.00495630
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x40]
mov dword [0x5ae234], ecx
mov ecx, dword [esp + 0x44]
mov dword [0x5ae238], edx
mov edx, dword [esp + 0x3c]
mov dword [0x5ae23c], eax
mov eax, dword [esp + 0x28]
mov dword [0x5ae240], ecx
mov ecx, dword [esp + 0x2c]
mov dword [0x59bcec], edi
mov dword [0x5ae230], ebx
mov dword [0x59bcf0], edx
mov dword [0x5ae244], eax
mov dword [0x5ae248], ecx
je 0x502f08
mov eax, dword [esi + 8]
test eax, eax
je 0x502eb4
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.0048b040
mov eax, dword [0x59bcd4]
test eax, eax
je 0x502eeb
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x502ece
mov ecx, eax
call fcn.0041d520
jmp 0x502eeb
cmp eax, 2
jne 0x502eeb
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xbbc]
push eax
lea ecx, [esi + 0x1c]
mov edx, 1
call fcn.00520010
mov esi, dword [esi + 4]
test esi, esi
jle 0x502ef6
dec esi
mov dword [ebp + 8], esi
mov dword [0x5ae234], 0
mov dword [esp + 0x58], 1
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [0x5ae230]
cmp ecx, edi
mov byte [esp + 0x80], 0
jle 0x502f5d
cmp ecx, 0x19
jle 0x502f34
mov ecx, 0x19
mov dword [0x5ae230], ecx
mov edx, ecx
shr ecx, 2
mov eax, 0x20202020
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x5ae230]
mov byte [esp + eax + 0x80], 0
xor edi, edi
mov ecx, dword [esi + 0x864]
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x503a2d
mov edx, dword [esi + 0x974]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, dword [0x5b121c]
test eax, eax
mov dword [esp + 0x50], 0xffffffff
je 0x502fc4
mov edx, dword [esi + 0x9e4]
mov ecx, edi
call fcn.0048d6d0
mov dword [esp + 0x50], eax
mov eax, dword [0x59bcec]
test eax, eax
jg 0x502fd8
mov ecx, edi
call fcn.00500370
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x6fc]
sub eax, dword [esi + 0x700]
jne 0x502fee
mov dword [esp + 0x3c], 1
mov eax, dword [0x5ae228]
inc eax
cmp eax, 0x2328
mov dword [0x5ae228], eax
jle 0x50300a
mov dword [0x5ae228], 1
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], eax
mov eax, ebx
mov dword [esp + 0x6c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503025
sub eax, edx
add eax, ebx
cmp ebx, eax
mov dword [esp + 0x2c], eax
jae 0x50371b
lea esp, [esp]
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x50312f
mov eax, dword [0x5ae23c]
test eax, eax
je 0x503113
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x730]
cmp eax, 1
je 0x503091
cmp eax, 2
jne 0x503113
mov eax, dword [0x5ad0f4]
test eax, eax
je 0x503113
mov edx, 1
lea ecx, [esp + 0xa0]
call fcn.0052ef00
mov al, byte [esp + 0xa0]
test al, al
je 0x5030e1
lea edi, [esp + 0xa0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5030b5
mov ax, word [0x5842b8]
mov word [edi], ax
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5030d0
sub eax, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5030e7
lea edi, [esp + 0xa0]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5030f8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5031a2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xa0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x503120
jmp 0x5031a2
mov eax, dword [0x5ae230]
test eax, eax
je 0x50318b
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x80]
mov byte [esp + eax + 0xa0], cl
inc eax
test cl, cl
jne 0x503140
mov eax, dword [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x503160
lea edi, [esp + 0xa0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x503171
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5031a2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xa0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x503198
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5031b0
mov edi, dword [0x59bcec]
sub eax, edx
dec eax
test edi, edi
mov dword [esp + 0x48], eax
jg 0x503449
xor edi, edi
test eax, eax
mov dword [esp + 0x18], 2
jl 0x503400
mov ebx, dword [esp + 0x28]
mov eax, dword [0x5b121c]
test eax, eax
je 0x503212
lea ecx, [esp + 0xa0]
push edi
push ecx
call fcn.00572da3
add esp, 8
cmp eax, 1
mov dword [esp + 0x40], eax
je case.0x503238.4
cmp eax, 2
je case.0x503238.4
movzx eax, byte [esp + edi + 0xa0]
lea esi, [esp + edi + 0xa0]
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x40], 0
ja case.0x503238.4
movzx edx, byte [eax + 0x503aac]
jmp dword [edx*4 + 0x503a98]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], eax
jmp case.0x503238.22
mov ecx, dword [0x5a54f8]
call fcn.004336b0
push eax
push 0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x7c]
mov ecx, esi
call fcn.00500120
add edi, eax
jmp case.0x503238.22
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 1
jmp case.0x503238.22
mov eax, dword [esp + 0x34]
test eax, eax
je 0x50336e
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x44], esi
mov dword [esp + 0x34], 0
je 0x50336e
mov edx, dword [esp + 0x30]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5032d2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x44], esi
test esi, esi
mov esi, dword [esp + 0xc]
je 0x503347
mov eax, dword [esi + 0x9e0]
xor ecx, ecx
cmp eax, 0x190
setle cl
lea edx, [esi + 0x978]
push edx
mov edx, dword [esi + 0x9dc]
push 0
push 0
push 0
dec ecx
push 0
and ecx, 0xfffffed4
add ecx, 0x2bc
mov eax, ecx
mov ecx, dword [esi + 0x9e4]
push ecx
push 0
push 0
push 0
push eax
push 0
push 0
push 0
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x38], eax
je 0x50333e
push eax
jmp 0x503356
mov ecx, dword [esi + 0x974]
push ecx
jmp 0x503356
mov edx, dword [esi + 0x974]
mov dword [esp + 0x38], 0
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.00500370
mov dword [esp + 0x4c], eax
jmp 0x503372
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x503395
cmp eax, 1
jne case.0x503238.22
push 2
lea edx, [esp + edi + 0xa4]
mov ecx, ebx
call fcn.00500390
jmp 0x5033d9
cmp dword [esi + 0x708], 9
jne 0x5033bf
cmp byte [esp + edi + 0xa0], 9
jne 0x5033bf
mov eax, dword [esp + 0x18]
push eax
mov edx, 2
mov ecx, esi
call fcn.00500330
mov dword [esp + 0x18], eax
jmp case.0x503238.22
lea ecx, [esp + 0x78]
push ecx
push 1
lea edx, [esp + edi + 0xa8]
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
sub eax, edx
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x18], ecx
jge 0x503400
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jle 0x5031e2
dec edi
cmp edi, 0xa
jge 0x50340b
mov edi, 0xa
mov eax, dword [0x5b121c]
test eax, eax
je 0x50342b
lea edx, [esp + 0xa0]
push edi
push edx
call fcn.00572da3
add esp, 8
cmp eax, 1
jne 0x50342b
dec edi
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x503445
mov eax, dword [esp + 0x20]
test eax, eax
je 0x503445
mov eax, dword [esp + 0x54]
cmp edi, eax
jg 0x503445
mov edi, eax
mov eax, dword [esp + 0x48]
cmp edi, eax
jg 0x503451
mov esi, edi
jl 0x50345a
mov eax, dword [esp + 0x2c]
jmp 0x5035a0
mov ecx, dword [esp + 0x1c]
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ebx, edi
sub ebx, eax
mov eax, dword [0x5b121c]
test eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x18], ecx
je 0x503497
lea edx, [esp + 0xa0]
push edi
push edx
call fcn.00572da3
add esp, 8
cmp eax, 2
jne 0x503497
lea esi, [edi - 1]
cmp esi, ebx
jl 0x5034f0
jmp 0x5034a0
cmp byte [esp + esi + 0xa0], 0x20
je 0x5034ec
mov eax, dword [0x5b121c]
test eax, eax
je 0x5034ce
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00572da3
add esp, 8
cmp eax, 1
je 0x5034e7
cmp eax, 2
je 0x5034e7
cmp byte [esp + esi + 0xa0], 2
jne 0x5034e7
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x18], ecx
dec esi
cmp esi, ebx
jge 0x5034a0
cmp esi, ebx
jg 0x5034f4
mov esi, edi
jmp 0x50350a
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
je 0x50350a
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 1
mov eax, dword [0x5b121c]
test eax, eax
je 0x50352e
lea edx, [esp + 0xa0]
push esi
push edx
call fcn.00572da3
add esp, 8
cmp eax, 1
jne 0x50352e
test esi, esi
jle 0x50352e
dec esi
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov eax, dword [0x5ae230]
jne 0x503570
mov eax, dword [esp + 0x20]
test eax, eax
je 0x503566
mov eax, dword [esp + 0x54]
cmp esi, eax
jge 0x50354e
lea esi, [eax - 1]
mov byte [esp + esi + 0xa1], 0
sub esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + esi + 1]
mov dword [esp + 0x10], ecx
jmp 0x5035a4
mov byte [esp + esi + 0xa1], 0
jmp 0x503598
test eax, eax
mov byte [esp + esi + 0xa1], 0
je 0x503596
lea ecx, [esi + 1]
cmp ecx, eax
jg 0x503596
dec eax
mov dword [0x5ae230], eax
mov byte [esp + eax + 0x80], 0
jmp 0x50370d
sub esi, eax
mov edx, dword [esp + 0x10]
lea eax, [edx + esi + 1]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0xc]
push ecx
push edx
push eax
lea edx, [esp + 0xac]
mov ecx, ebx
call fcn.005003d0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x503637
mov eax, dword [ebx + 0x6a8]
test eax, eax
je 0x503637
mov eax, dword [0x5ae244]
test eax, eax
jne 0x503637
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jae 0x503619
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5035f0
lea edi, [esp + 0xa0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x503601
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0xa0]
test al, al
je 0x503637
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xa4]
mov ecx, ebx
call fcn.004cb050
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.00420550
mov eax, dword [0x5ae24c]
mov esi, 1
cmp eax, esi
jne 0x503697
cmp dword [ebx + 0x708], 2
jne 0x503697
mov eax, dword [ebx + 0x76c]
test eax, eax
jne 0x503697
mov dword [ebx + 0x76c], 0x3e8
mov eax, dword [0x5aa630]
test eax, eax
jne 0x503697
mov edx, dword [0x5b4314]
push 0
push 0x64
push 0x8b
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5aa630], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5036e8
mov eax, dword [0x5ae22c]
test eax, eax
jne 0x5036e8
mov eax, dword [esp + 0x14]
cmp eax, dword [0x5a56d8]
je 0x5036e8
mov eax, dword [0x5ae248]
test eax, eax
jne 0x5036e8
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00500dd0
mov eax, dword [0x59bcec]
test eax, eax
jge 0x503709
mov eax, dword [0x5ae228]
inc eax
cmp eax, 0x2328
mov dword [0x5ae228], eax
jle 0x503709
mov dword [0x5ae228], esi
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x10], ecx
jb 0x503040
mov eax, dword [esp + 0x50]
test eax, eax
jl 0x50372c
push eax
call fcn.00572bf6
add esp, 4
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50374b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5037e8
mov eax, dword [esp + 0x14]
cmp eax, dword [0x5a56d8]
je 0x5037e8
mov eax, dword [0x5ae22c]
test eax, eax
mov esi, dword [esp + 0xc]
je 0x5037d1
mov ecx, dword [esi + 0x864]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x5ae22c]
inc eax
cmp eax, 3
mov dword [0x5ae22c], eax
jl 0x5037d1
mov eax, dword [0x5ae248]
test eax, eax
mov dword [0x5ae22c], 1
jne 0x503808
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
xor edx, edx
mov ecx, esi
call fcn.00500dd0
mov eax, dword [0x5ae248]
test eax, eax
jne 0x503808
mov edx, 1
mov ecx, esi
call fcn.00544bb0
jmp 0x503808
mov esi, dword [esp + 0xc]
mov ecx, esi
xor edx, edx
call fcn.00544bb0
mov eax, dword [0x59bcd4]
test eax, eax
je 0x503808
mov dword [0x5ae234], 2
mov edx, dword [esi + 0x864]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x59bcf0]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
je 0x503986
cmp dword [esi + 0x708], 3
je 0x503986
mov eax, dword [esi + 0x710]
cmp eax, 2
je 0x50391a
cmp eax, 1
mov edi, dword [esp + 0x58]
jne 0x503856
test edi, edi
je 0x50391a
cmp eax, 3
jne 0x50386c
test edi, edi
jne 0x50386c
mov eax, dword [0x5ae24c]
test eax, eax
je 0x50391a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x5038d9
mov ecx, dword [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x5038d9
mov eax, dword [0x59bd48]
test eax, eax
je 0x50391a
mov eax, dword [0x59bd64]
test eax, eax
je 0x50391a
mov edx, dword [esp + 0x14]
cmp edx, dword [0x5b4320]
je 0x50391a
test edi, edi
je 0x5038c0
mov dword [esi + 0x710], 2
jmp 0x503913
mov ecx, dword [0x5ae24c]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax + eax + 1]
mov dword [esi + 0x710], eax
jmp 0x503913
test edi, edi
je 0x5038e9
mov dword [esi + 0x710], 2
jmp 0x5038ff
mov eax, dword [0x5ae24c]
xor ecx, ecx
test eax, eax
sete cl
lea ecx, [ecx + ecx + 1]
mov dword [esi + 0x710], ecx
mov edx, dword [esp + 0x14]
push edx
call ebx
test eax, eax
je 0x503913
xor edx, edx
mov ecx, esi
call fcn.00496980
mov ecx, esi
call fcn.00527d80
mov eax, dword [esi + 0x710]
test eax, eax
je 0x503986
mov eax, dword [esi + 0xbbc]
mov ecx, dword [eax]
call fcn.00542c90
test eax, eax
je 0x503986
mov ecx, dword [eax + 0xa48]
test ecx, ecx
jne 0x503986
mov ecx, dword [esi + 0x710]
cmp ecx, 2
jne 0x503954
cmp dword [eax + 0x710], ecx
jne 0x503979
jmp 0x503986
cmp ecx, 1
jne 0x50396a
mov edx, dword [eax + 0x710]
cmp edx, 2
je 0x503986
cmp edx, ecx
jne 0x503979
jmp 0x503986
cmp ecx, 3
jne 0x503979
mov edx, dword [eax + 0x710]
test edx, edx
jne 0x503986
mov dword [eax + 0x710], ecx
mov ecx, eax
call fcn.00527d80
mov eax, dword [0x5ae234]
test eax, eax
je 0x5039ff
mov ecx, dword [esi + 0x71c]
test ecx, ecx
jne 0x5039ff
mov ecx, dword [0x5a16c8]
test ecx, ecx
jne 0x5039ff
cmp eax, 2
jne 0x5039cd
mov eax, dword [0x5aca7c]
test eax, eax
je 0x5039cd
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x5039d1
push edi
call ebx
test eax, eax
je 0x5039d1
jmp 0x5039f5
mov edi, dword [esp + 0x14]
cmp edi, dword [0x5b4320]
jne 0x5039e2
mov eax, dword [0x5b431c]
test eax, eax
jne 0x5039ff
mov eax, dword [0x59bcd4]
test eax, eax
je 0x5039ff
mov eax, dword [esi + 0x714]
test eax, eax
je 0x5039ff
mov ecx, 1
call fcn.0041d520
mov eax, dword [0x5ae240]
test eax, eax
je 0x503a2d
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x718]
test eax, eax
je 0x503a2d
mov edx, ecx
mov eax, dword [edx + 0x71c]
test eax, eax
jne 0x503a2d
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.0048b040
xor eax, eax
mov dword [0x59bcec], 0x55
mov dword [0x5ae230], eax
mov dword [0x5ae234], eax
mov dword [0x5ae238], eax
mov dword [0x5ae23c], eax
mov dword [0x5ae240], eax
mov dword [0x59bcf0], 1
mov dword [0x5ae244], eax
mov dword [0x5ae248], eax
mov dword [0x5ae24c], eax
mov dword [0x5ae250], eax
mov dword [0x5ae254], eax
mov dword [0x5ae25c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4