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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x5c], 0
push 0x14
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.100f1850
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
cmp dword [eax + 0xc], 0xffffffff
je 0x1004aae5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
cmp dword [edx + 0x10], 0
jg 0x1004aae0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10047ac0
add esp, 8
test eax, eax
jle 0x1004aae5
jmp 0x1004b65f
cmp dword [0x10113e5c], 0xffffffff
jne 0x1004ab04
push str.LM_PROJECT
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039130
add esp, 8
mov dword [0x10113e5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov dword [edx + 0x38], 3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov dword [ecx + 0x34], 1
cmp dword [ebp + 0x10], 0
je 0x1004ab33
jmp 0x1004ab69
push 0x40
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.1003d057
add esp, 0xc
lea ecx, [ebp - 0x50]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x14]
movsx eax, byte [edx + 0x68]
and eax, 2
test eax, eax
je 0x1004ab62
mov dword [ebp - 0x5c], 1
jmp 0x1004ab69
mov dword [ebp - 0x5c], 0
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.1003d057
add esp, 0xc
cmp dword [ebp - 0x58], 0
jne 0x1004b055
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0
cmp dword [ebp - 0x54], 2
jne 0x1004abce
push str.DEBUG_CONNECT_TO_VD
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039130
add esp, 8
test eax, eax
jne 0x1004abce
cmp dword [ebp - 4], 0
jne 0x1004abce
mov dword [ebp - 0x1e8], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1e8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x1e8]
push edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10060670
add esp, 0x14
lea eax, [ebp - 0x1e4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005fd70
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1004b049
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xfffffff1
je 0x1004ac47
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xffffffa0
je 0x1004ac47
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0xfffffff0
je 0x1004ac47
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xfffffff2
jne 0x1004adf8
cmp dword [ebp - 4], 2
jne 0x1004acc4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push str._s_:__s
lea edx, [ebp - 0x238]
push edx
call fcn.100f0f37
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x1004ac89
mov ecx, 1
test ecx, ecx
je 0x1004ac89
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2b4], eax
jmp 0x1004ac93
mov dword [ebp - 0x2b4], 0xffffff9f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2b4]
mov dword [ecx + 0x14], edx
push 0
push 0xff
lea eax, [ebp - 0x238]
push eax
push 0
push 0x17c
push 0xffffffffffffff9f
mov ecx, dword [ebp + 8]
push ecx
call fcn.10032260
add esp, 0x1c
jmp 0x1004ad42
cmp dword [ebp - 4], 1
jne 0x1004aceb
mov dword [ebp - 4], 2
push 0x40
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.1003d057
add esp, 0xc
jmp 0x1004ab7e
cmp dword [ebp - 0x5c], 0
je 0x1004ad42
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x1004ad0e
xor edx, edx
test edx, edx
je 0x1004ad0e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2b8], ecx
jmp 0x1004ad18
mov dword [ebp - 0x2b8], 0xffffffa1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2b8]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x17a
push 0xffffffffffffffa1
mov ecx, dword [ebp + 8]
push ecx
call fcn.10032260
add esp, 0x1c
cmp dword [ebp + 0x14], 0
je 0x1004adc6
mov edx, dword [ebp + 0x14]
cmp dword [edx + 0x48], 0
je 0x1004adc6
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x48]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], 0
push 0x40
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.1003d057
add esp, 0xc
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x68]
and edx, 2
test edx, edx
je 0x1004ad8a
mov dword [ebp - 0x5c], 1
jmp 0x1004ad91
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004a7b2
add esp, 0x14
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x1004adc1
jmp 0x1004b65f
jmp 0x1004ab7e
push 0x14
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.100f2c40
add esp, 0xc
test eax, eax
je 0x1004adf3
push 0x14
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.100f1850
add esp, 0xc
jmp 0x1004ab7e
jmp 0x1004b65f
movsx eax, byte [ebp - 0x1e4]
cmp eax, 0x41
jne 0x1004af6f
cmp dword [ebp + 0x14], 0
je 0x1004af6f
mov dword [ebp - 4], 1
movsx ecx, byte [ebp - 0x1e2]
test ecx, ecx
je 0x1004ae4e
push 0x20
lea edx, [ebp - 0x1e2]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.100f1710
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x1b6]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.100f1710
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x38c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x394]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x390]
push eax
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.1004b666
add esp, 0x14
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x1004af62
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x48]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
jne 0x1004af00
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x1004aeca
mov edx, 1
test edx, edx
je 0x1004aeca
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2bc], ecx
jmp 0x1004aed4
mov dword [ebp - 0x2bc], 0xfffffff1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2bc]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x1c
push 0xfffffffffffffff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.10032260
add esp, 0x1c
jmp 0x1004b055
push 0x40
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.100f1710
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004a7b2
add esp, 0x14
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x1004af42
jmp 0x1004b65f
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax + 0x68]
and ecx, 2
test ecx, ecx
je 0x1004af59
mov dword [ebp - 0x5c], 1
jmp 0x1004af60
mov dword [ebp - 0x5c], 0
jmp 0x1004af6a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
jmp 0x1004b047
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x3a8]
and eax, 8
test eax, eax
je 0x1004b045
cmp dword [ebp - 8], 0
je 0x1004b045
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x14], ecx
cmp dword [ebp - 4], 0
jne 0x1004affc
push 0x40
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.100f1710
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004a7b2
add esp, 0x14
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x1004afde
jmp 0x1004b65f
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax + 0x68]
and ecx, 2
test ecx, ecx
je 0x1004aff5
mov dword [ebp - 0x5c], 1
jmp 0x1004affc
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x60]
sub edx, 1
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 3
jne 0x1004b012
mov dword [ebp - 0x60], 1
cmp dword [ebp - 0x60], 0
jl 0x1004b041
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0x38], edx
push 1
push 1
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10060670
add esp, 0x14
jmp 0x1004b043
jmp 0x1004b055
jmp 0x1004b047
jmp 0x1004b055
jmp 0x1004b050
mov dword [ebp - 0x58], 1
jmp 0x1004ab7e
movsx eax, byte [ebp - 0x1e4]
cmp eax, 0x4f
jne 0x1004b599
mov dword [ebp - 0x24c], 1
lea ecx, [ebp - 0x24c]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0xc]
push edx
call fcn.10048776
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x5c]
and ecx, 0x100
test ecx, ecx
jne 0x1004b0e5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x1004b0b4
xor eax, eax
test eax, eax
je 0x1004b0b4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x2c0], edx
jmp 0x1004b0be
mov dword [ebp - 0x2c0], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c0]
mov dword [eax + 0x14], ecx
push 0
push 0xff
push 0
push 0
push 0x1d
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.10032260
add esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003bd80
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov dword [edx + 0x14], eax
movsx eax, byte [ebp - 0x1e2]
test eax, eax
jne 0x1004b146
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov edx, dword [edx + 0x34]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [ecx + 0x38]
mov dword [eax + 0x30], ecx
jmp 0x1004b1de
mov dword [ebp - 0x250], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1cb]
push ecx
call fcn.1003cfee
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
add eax, 0x30
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.1003cfee
add esp, 8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x1e2]
push eax
call fcn.1003cfee
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov al, byte [ebp - 0x250]
mov byte [edx + 0x4c], al
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x1d7]
push edx
call fcn.1003cfee
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov dl, byte [ebp - 0x250]
mov byte [ecx + 0x4d], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
movsx dx, byte [ebp - 0x1cc]
mov word [ecx + 0x3c], dx
cmp dword [ebp + 0x14], 0
je 0x1004b369
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x414]
mov dword [ebp - 0x258], ecx
jmp 0x1004b207
mov edx, dword [ebp - 0x258]
mov eax, dword [edx]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x1004b242
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 4]
push eax
call fcn.100f2920
add esp, 8
test eax, eax
jne 0x1004b240
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx + 0x50]
cmp ecx, dword [eax + 0x50]
jne 0x1004b240
jmp 0x1004b242
jmp 0x1004b1f9
cmp dword [ebp - 0x258], 0
je 0x1004b262
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 4]
mov dword [eax + 0x18], edx
jmp 0x1004b367
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x254], eax
jmp 0x1004b295
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x25c]
add eax, 1
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x254], 0
je 0x1004b2a0
jmp 0x1004b277
push 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003d3e0
add esp, 8
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x25c]
imul edx, edx, 0x78
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003d3e0
add esp, 8
mov ecx, dword [ebp - 0x258]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x254], edx
jmp 0x1004b2ed
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x254], ecx
cmp dword [ebp - 0x254], 0
je 0x1004b347
push 0x78
mov edx, dword [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 4]
push ecx
call fcn.100f1850
add esp, 0xc
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 4]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x254]
cmp dword [ecx + 0x48], 0
je 0x1004b345
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 4]
add eax, 0x78
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 4]
mov dword [edx + 0x48], eax
jmp 0x1004b2de
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x414]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x258]
mov dword [eax + 0x414], ecx
jmp 0x1004b376
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov dword [eax + 0x18], 0
push 0xa
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
add eax, 0x1c
push eax
call fcn.1003d057
add esp, 0xc
mov ecx, dword [ebp + 0x18]
movsx edx, byte [ecx]
test edx, edx
je 0x1004b4c7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
movsx edx, word [ecx + 0x3a0]
test edx, edx
jl 0x1004b3cc
mov eax, dword [ebp + 0x18]
movsx ecx, byte [eax]
test ecx, ecx
je 0x1004b3d9
push 0x10113ea0
mov edx, dword [ebp + 0x18]
push edx
call fcn.100f2920
add esp, 8
test eax, eax
jne 0x1004b3d9
cmp dword [0x10113e5c], 0
je 0x1004b4c7
push 0x94
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
movsx eax, word [edx + 0x3a0]
test eax, eax
jl 0x1004b41d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
movsx eax, word [edx + 0x3a0]
push eax
lea ecx, [ebp - 0xd7]
push ecx
call fcn.1003cfa0
add esp, 8
cmp dword [0x10113e5c], 0
je 0x1004b43e
push 0x1e
mov edx, dword [0x10113e5c]
push edx
lea eax, [ebp - 0xf6]
push eax
call fcn.1003d057
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x2a
mov edx, dword [ebp + 8]
push edx
call fcn.1003caf0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c08a
add esp, 0xc
movsx eax, byte [ebp - 0x260]
cmp eax, 0x4f
jne 0x1004b4c7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x1004b496
xor edx, edx
test edx, edx
je 0x1004b496
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c4], ecx
jmp 0x1004b4a0
mov dword [ebp - 0x2c4], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c4]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x75
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.10032260
add esp, 0x1c
mov edx, dword [ebp + 0x18]
movsx eax, byte [edx]
test eax, eax
je 0x1004b588
push 0x10113ea8
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.100f2920
add esp, 8
test eax, eax
je 0x1004b588
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [eax + 0x3a8]
and ecx, 0x200
test ecx, ecx
jne 0x1004b588
push 0x4c
push 0
lea edx, [ebp - 0x2b0]
push edx
call fcn.100f1b90
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
lea ecx, [ebp - 0x2b0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10032519
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100527b0
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
push 0x67
mov eax, dword [ebp + 8]
push eax
call fcn.1003caf0
add esp, 0xc
lea ecx, [ebp - 0x2b0]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10032519
add esp, 0xc
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.100324bf
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x78], ecx
jmp 0x1004b65f
movsx edx, byte [ebp - 0x1e4]
cmp edx, 0x3f
jne 0x1004b5fa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x1004b5c5
mov ecx, 1
test ecx, ecx
je 0x1004b5c5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c8], eax
jmp 0x1004b5cf
mov dword [ebp - 0x2c8], 0xffffff9f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c8]
mov dword [ecx + 0x14], edx
push 0
push 0xff
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x79
push 0xffffffffffffff9f
mov ecx, dword [ebp + 8]
push ecx
call fcn.10032260
add esp, 0x1c
jmp 0x1004b65f
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
jne 0x1004b65f
movsx eax, byte [ebp - 0x1e4]
cmp eax, 0x4f
je 0x1004b65f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x1004b62c
xor edx, edx
test edx, edx
je 0x1004b62c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2cc], ecx
jmp 0x1004b636
mov dword [ebp - 0x2cc], 0xfffffff4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2cc]
mov dword [edx + 0x14], eax
push 0
push 0xff
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0x7a
push 0xfffffffffffffff4
mov edx, dword [ebp + 8]
push edx
call fcn.10032260
add esp, 0x1c
mov eax, dword [ebp - 0x78]
mov esp, ebp
pop ebp
ret