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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00523280
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x98]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x9c]
mov dword [edx + 0xc], ecx
mov ecx, 0x6f6f80
call fcn.00462177
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5237e6
or eax, 0xffffffff
jmp 0x5240e1
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 0x588]
test eax, eax
je 0x523c2b
xor ecx, ecx
test ecx, ecx
je 0x523812
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 0x10
test edx, edx
je 0x523837
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 0x80000
test eax, eax
je 0x523860
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or eax, 0x80000
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x4000
test ecx, ecx
je 0x523888
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or ch, 0x40
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 0x10000
test edx, edx
je 0x5238b3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 0x10000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 0x100000
test eax, eax
je 0x5238dc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or eax, 0x100000
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x200000
test ecx, ecx
je 0x523907
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or ecx, 0x200000
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 8
test edx, edx
je 0x52392c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 4
test eax, eax
je 0x523950
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or al, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x80
test ecx, ecx
je 0x523978
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or cl, 0x80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 2
test edx, edx
je 0x52399d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 0x40
test eax, eax
je 0x5239c1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or al, 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x20
test ecx, ecx
je 0x5239e6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or ecx, 0x20
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 0x100
test edx, edx
je 0x523a0e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or dh, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 0x400
test eax, eax
je 0x523a35
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or ah, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x200
test ecx, ecx
je 0x523a5d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or ch, 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 1
test edx, edx
je 0x523a82
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58c]
and eax, 0x800
test eax, eax
je 0x523aa9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or ah, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58c]
and ecx, 0x40000
test ecx, ecx
je 0x523ad4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
or ecx, 0x40000
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58c]
and edx, 0x40000
test edx, edx
je 0x523aff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
or edx, 0x40000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x7bc]
call fcn.004a5583
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x7bc]
call fcn.004a559c
test eax, eax
je 0x523b29
mov dword [ebp - 0xc], 1
cmp dword [0x6ff3f8], 7
jne 0x523b9c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
imul edx, dword [ecx + 0x7b8]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 0x584]
cmp edx, ecx
jae 0x523b66
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
imul eax, dword [edx + 0x7b8]
mov ecx, dword [ebp - 8]
mov word [ecx + 0x584], ax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
imul eax, dword [edx + 0x7b8]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 0x586]
cmp eax, edx
jae 0x523b9a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
imul ecx, dword [eax + 0x7b8]
mov edx, dword [ebp - 8]
mov word [edx + 0x586], cx
jmp 0x523bbf
mov eax, dword [ebp - 8]
mov word [eax + 0x584], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
imul edx, dword [ecx + 0x7b8]
mov eax, dword [ebp - 8]
mov word [eax + 0x586], dx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 8]
mov cx, word [eax + 0x584]
mov word [edx + 0x18], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 0x586]
mov word [eax + 0x1a], dx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 8]
mov ax, word [edx + 0x588]
mov word [ecx + 0x20], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
xor eax, eax
mov ax, word [edx + 0x1a]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
xor ecx, ecx
mov cx, word [edx + 0x1e]
cmp eax, ecx
jle 0x523c2b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov ax, word [eax + 0x1e]
mov word [edx + 0x1a], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
or ah, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0x2a], 0x5225a7
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0xc0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x523d21
cmp dword [ebp - 4], 2
je 0x523d21
call fcn.0065c946
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1009
je 0x523c97
cmp dword [ebp - 0x1c], 0x100a
jbe 0x523d03
cmp dword [ebp - 0x1c], 0x100c
jbe 0x523c97
jmp 0x523d03
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
cmp dword [edx + 0xc], 0
je 0x523ccc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0xc]
push edx
call fcn.005205ce
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x9c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
cmp dword [ecx + 8], 0
je 0x523d01
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 8]
push ecx
call fcn.005205ce
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x98], 0
jmp 0x523d0b
mov eax, dword [ebp - 4]
jmp 0x5240e1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0xc0]
mov dword [ebp - 4], eax
jmp 0x523c5e
cmp dword [ebp - 4], 1
jne 0x5240de
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 8]
mov dword [eax + 0x98], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x98], 0
je 0x5240b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x98]
push edx
call dword [0x705b74]
mov dword [ebp - 0x10], eax
push 0x20
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x4e8
push ecx
call fcn.0065c650
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x20]
mov word [edx + 0x508], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x22]
mov word [edx + 0x50a], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x24]
mov word [edx + 0x50c], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x26]
mov word [edx + 0x50e], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x510], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x2c]
mov word [edx + 0x514], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x2e]
mov word [edx + 0x516], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x30]
mov word [edx + 0x518], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x32]
mov word [edx + 0x51a], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x34]
mov word [edx + 0x51c], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x36]
mov word [edx + 0x51e], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x38]
mov word [edx + 0x520], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x3a]
mov word [edx + 0x522], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x3c]
mov word [edx + 0x524], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x3e]
mov word [edx + 0x526], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x40]
mov word [edx + 0x528], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x42]
mov word [edx + 0x52a], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x44]
mov word [edx + 0x52c], cx
push 0x20
mov edx, dword [ebp - 0x10]
add edx, 0x46
push edx
mov eax, dword [ebp - 8]
add eax, 0x52e
push eax
call fcn.0065c650
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0x66]
mov word [ecx + 0x54e], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x550], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x554], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x558], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x55c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x78]
mov dword [ecx + 0x560], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x564], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x568], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x56c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x570], eax
mov ecx, dword [ebp - 8]
mov word [ecx + 0x584], 1
mov edx, dword [ebp - 8]
mov word [edx + 0x586], 1
mov eax, dword [ebp - 8]
mov word [eax + 0x588], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x14]
and eax, 0x40
test eax, eax
je 0x523fb6
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58c], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
and ecx, 0x40
test ecx, ecx
jne 0x5240b0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 8]
mov dx, word [eax + 0x18]
mov word [ecx + 0x584], dx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 8]
mov ax, word [ecx + 0x1a]
mov word [edx + 0x586], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x58c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 8]
mov dx, word [eax + 0x20]
mov word [ecx + 0x588], dx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + 0x14]
and edx, 1
test edx, edx
je 0x524088
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x7bc]
call fcn.004a559c
test eax, eax
jne 0x524052
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x7bc]
call fcn.0051daee
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, 1
mov eax, dword [ebp - 8]
imul edx, dword [eax + 0x7b8]
add edx, 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
mov word [eax + 0x18], dx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
imul edx, dword [ecx + 0x7b8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
mov word [ecx + 0x1a], dx
jmp 0x5240b0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + 0x14]
and ecx, 2
test ecx, ecx
jne 0x5240b0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov word [eax + 0x18], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov word [edx + 0x1a], 0xffff
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0x64]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3f8], 0
jl 0x5240de
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3f8]
mov eax, dword [0x6fe6f4]
mov dword [eax + edx*4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4