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

Disassembly:
sub esp, 0x3a4
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x581645
mov eax, dword [ebx + 0x20]
push ebp
push esi
push edi
test eax, eax
je 0x580e2b
mov eax, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x84]
mov esi, dword [0x647e90]
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x88]
sub eax, edi
add eax, esi
sub ecx, edx
mov dword [ebx + 0xc], eax
mov eax, dword [0x647e94]
add ecx, eax
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
lea edx, [ecx + 0x188]
lea esi, [ecx + 0x108]
mov dword [ebx + 0x14], edx
lea edx, [eax + 0x1c7]
mov dword [ebx + 0x18], edx
lea edx, [eax + 0xf0]
lea edi, [eax + 0xdc]
mov eax, dword [ebx + 0x68]
add ecx, 0xe3
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
lea esi, [ecx + 0x15d]
lea edx, [eax + 0x107]
add ecx, 0x14a
add eax, 0xf3
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], edx
xor esi, esi
mov ecx, 0x1c
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add eax, esi
add esi, 0x12
lea ebp, [edx + 0x146]
add edx, 0x9e
lea edi, [eax + 0x52]
add eax, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x68]
add eax, ecx
add ecx, 0x1c
cmp ecx, 0x54
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
jl 0x580dee
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x580e70
mov eax, dword [0xa4f274]
push 0
test eax, eax
push 0
je 0x580e53
lea eax, [ebx + 0x74]
push eax
push 0xa257d8
push 0
push 0
push str..BitmapsInterfaceWSAinterUpgrade.wsa
jmp 0x580e65
lea ecx, [ebx + 0x74]
push ecx
push 0xa257d8
push 0
push 0
push str..BitmapsInterfaceWSA_notbig5interUpgrade.wsa
call fcn.005a5e90
add esp, 0x1c
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
push edx
mov edx, dword [ebx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
push ecx
push edx
push eax
call dword [0xd36aac]
mov eax, dword [0xa4f274]
add esp, 0x10
test eax, eax
je 0x580ed5
lea ecx, [esp + 0x3c]
mov edi, 0x673108
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x673108
call fcn.005a9050
mov eax, dword [esp + 0x48]
push 0xffffff
cdq
sub eax, edx
mov edx, 0xdc
sar eax, 1
sub edx, eax
push 0xd9
push edx
push 0x673108
jmp 0x580f1a
lea eax, [esp + 0x3c]
mov edi, 0x673100
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x673100
call fcn.005a9050
mov eax, dword [esp + 0x48]
mov ecx, dword [ebx + 0x10]
cdq
sub eax, edx
mov edx, dword [ebx + 0xc]
sar eax, 1
sub edx, eax
add ecx, 0x1f
push 0xffffff
add edx, 0xb8
push ecx
push edx
push 0x673100
call fcn.0047af10
mov eax, dword [ebx + 0x68]
add esp, 0x1c
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x580f41
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 8]
mov edx, dword [ebx + 0xc]
push eax
push ecx
push edx
jmp 0x580f54
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [ebx + 0xc]
push edx
push eax
push ecx
call dword [0xd36aac]
mov eax, dword [ebx + 0x64]
add esp, 0x10
test eax, eax
je 0x580f79
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
push edx
mov edx, dword [ebx + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx + 0xc]
push ecx
push edx
push eax
jmp 0x580f8c
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0xc]
mov edx, dword [ebx + 0xc]
push eax
push ecx
push edx
call dword [0xd36aac]
mov al, byte [0x648701]
add esp, 0x10
push eax
push 0xc
push 0x6486dc
push 0xc
push str.Arial
call fcn.005a7f50
mov eax, dword [ebx + 0x24]
add esp, 0x14
lea ebp, [eax - 2]
cmp ebp, eax
jge 0x5812be
lea eax, [ebp + ebp*8]
lea esi, [ebp*8]
shl eax, 1
lea ecx, [ebp + ebp*8]
lea edx, [ebx + ebp]
mov dword [esp + 0x14], eax
sub esi, ebp
lea eax, [edx + ecx*8 + 0x4d]
lea ecx, [ebx + ebp*4 + 0x88]
shl esi, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [0xcf95d4]
mov eax, dword [ebx + 0x68]
mov ecx, dword [0xcf95d0]
add eax, esi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x58128a
mov edx, dword [esp + 0x20]
xor edi, edi
cmp dword [edx], edi
je 0x58128a
mov eax, dword [0xa4f0fc]
cmp eax, edi
je 0x58105d
mov ecx, dword [0xa4f104]
mov edx, dword [ecx]
mov ecx, dword [0xa4f100]
push edx
mov edx, dword [eax]
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea edx, [ecx + eax + 0x2e]
mov eax, dword [ebx + 0xc]
add eax, 0x9e
push edx
push eax
call dword [0xd36ac8]
add esp, 0x14
mov ecx, dword [str..BitmapsItem_]
mov edx, dword [0x656008]
mov eax, dword [0x65600c]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x656010]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x98]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1ca], edx
mov dword [esp + 0x1ce], edx
lea esi, [esp + 0x150]
mov ax, word [ecx]
mov dword [esp + 0x1d2], edx
mov byte [esp + 0x1d6], dl
mov ecx, 0x4c
lea edi, [esp + 0x284]
mov dword [esp + 0x280], eax
lea edx, [esp + 0x280]
lea eax, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, 0xced988
call fcn.00474ae0
mov ecx, eax
push 0xa
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], edx
xor edx, edx
mov dx, word [eax + 0x5c]
push ecx
push edx
call fcn.0061d6c5
mov edi, str..wsa
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea eax, [esp + 0x38]
push eax
push 0xa257d8
push 0
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.005a5e90
add esp, 0x28
mov dword [esp + 0x28], eax
test eax, eax
je 0x581286
mov esi, dword [esp + 0x1c]
xor edx, edx
lea eax, [esp + 0x10]
mov ecx, 0xced988
mov dx, word [esi]
push eax
mov dword [esp + 0x14], edx
call fcn.00487810
mov edx, dword [0xced98c]
mov dword [esp + 0x2c], eax
cmp eax, edx
je 0x5811e1
mov ecx, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
cmp ecx, edi
jl 0x5811e1
lea eax, [esp + 0x2c]
jmp 0x5811e9
mov dword [esp + 0x34], edx
lea eax, [esp + 0x34]
mov ecx, dword [eax]
cmp ecx, edx
je 0x58125c
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x74]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, eax
mov eax, 0xac
sub eax, edx
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, ecx
mov ecx, 0x72
sub ecx, edx
test eax, eax
jge 0x581225
xor eax, eax
test ecx, ecx
jge 0x58122b
xor ecx, ecx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
push edx
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
lea eax, [eax + edx + 0x46]
push eax
mov eax, ecx
mov ecx, dword [ebx + 0xc]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx + 0x1a]
push edx
call dword [0xd36aac]
add esp, 0x10
push 0
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.005a6840
xor edx, edx
xor eax, eax
mov dx, word [esi - 2]
mov ax, word [esi]
push 0xffffffffffffffff
push edx
push eax
call fcn.0047b6d0
add esp, 0x1c
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
inc ebp
add esi, 0x1c
add edx, 0x12
add ecx, 0x49
cmp ebp, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jl 0x580ff3
mov edx, dword [0xcf95d4]
mov eax, dword [ebx + 0x68]
mov ecx, dword [0xcf95d0]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
add eax, 0x1c
push edx
push ecx
push eax
call esi
test eax, eax
je 0x5812ed
mov eax, dword [ebx + 0x90]
test eax, eax
jne 0x581577
mov edx, dword [0xcf95d4]
mov eax, dword [ebx + 0x68]
mov ecx, dword [0xcf95d0]
add eax, 0x38
push edx
push ecx
push eax
call esi
test eax, eax
je 0x581316
mov eax, dword [ebx + 0x90]
test eax, eax
jne 0x581577
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x581577
mov eax, dword [0xa4f0fc]
test eax, eax
je 0x58135a
mov ecx, dword [0xa4f104]
mov edx, dword [ecx]
mov ecx, dword [0xa4f100]
push edx
mov edx, dword [eax]
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0xc]
add eax, 0x40
push edx
add ecx, 0x9e
push eax
push ecx
call dword [0xd36ac8]
add esp, 0x14
mov edx, dword [str..BitmapsItem_]
mov eax, dword [0x656008]
mov ecx, dword [0x65600c]
mov dword [esp + 0x88], edx
mov edx, dword [0x656010]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x94], edx
lea esi, [esp + 0x150]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1ca], eax
xor ecx, ecx
mov cx, word [ebx + 0x96]
mov dword [esp + 0x1ce], eax
mov dword [esp + 0x1d2], eax
mov dword [esp + 0x280], ecx
mov ecx, 0x4c
lea edi, [esp + 0x284]
mov byte [esp + 0x1d6], al
lea edx, [esp + 0x280]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x58]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call fcn.00474ae0
mov ecx, eax
push 0xa
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], edx
xor edx, edx
mov dx, word [eax + 0x5c]
push ecx
push edx
call fcn.0061d6c5
mov edi, str..wsa
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x9c]
push eax
push 0xa257d8
push 0
push 0
push ecx
call fcn.005a5e90
add esp, 0x28
mov dword [esp + 0x18], eax
test eax, eax
je 0x581577
xor edx, edx
lea eax, [esp + 0x10]
mov dx, word [ebx + 0x96]
push eax
mov ecx, 0xced988
mov dword [esp + 0x14], edx
call fcn.00487810
mov edx, dword [0xced98c]
mov dword [esp + 0x34], eax
cmp eax, edx
je 0x5814e6
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + 0xc]
cmp ecx, esi
jl 0x5814e6
lea eax, [esp + 0x34]
jmp 0x5814ee
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x2c]
mov ecx, dword [eax]
cmp ecx, edx
je 0x581561
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x74]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, eax
mov eax, 0xac
sub eax, edx
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, ecx
mov ecx, 0x72
sub ecx, edx
test eax, eax
jge 0x58152a
xor eax, eax
test ecx, ecx
jge 0x581530
xor ecx, ecx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
push edx
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
lea eax, [eax + edx + 0x46]
push eax
mov eax, ecx
mov ecx, dword [ebx + 0xc]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx + 0x1a]
push edx
call dword [0xd36aac]
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005a6840
add esp, 0x10
xor esi, esi
lea edi, [ebx + 0x96]
lea ebp, [ebx + 0x8c]
mov ax, word [edi]
test ax, ax
jbe 0x581630
cmp dword [ebp], 0
je 0x581630
lea edx, [esp + 0x10]
and eax, 0xffff
push edx
mov ecx, 0xced988
mov dword [esp + 0x14], eax
call fcn.00487810
mov ecx, dword [0xced98c]
mov dword [esp + 0x34], eax
cmp eax, ecx
je 0x5815d0
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 0xc]
jl 0x5815d0
lea eax, [esp + 0x34]
jmp 0x5815d8
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
mov eax, dword [eax]
cmp eax, ecx
je 0x581630
add eax, 0x10
push eax
lea eax, [esp + 0x64]
push str._s_X_1
push eax
call fcn.006133d6
mov eax, dword [0xa4f274]
add esp, 0xc
test eax, eax
jne 0x58160c
lea ecx, [esp + 0x60]
push 0
push ecx
call fcn.00586da0
add esp, 8
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push 0xffffff
add ecx, 0xaa
lea eax, [esi + edx + 0x43]
lea edx, [esp + 0x64]
push eax
push ecx
push edx
call fcn.0047af10
add esp, 0x10
add esi, 0x12
add ebp, 4
add edi, 0x49
cmp esi, 0x24
jl 0x581585
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a4
ret