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

Disassembly:
sub esp, 0x398
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x54]
test al, 0x10
push esi
push edi
je 0x5d3712
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
test edx, edx
mov ebp, dword [esp + 0x490]
mov edi, dword [esp + 0x48c]
je 0x5d28cb
test ah, 2
jne 0x5d28c0
mov ecx, ebx
call fcn.005815fc
test eax, eax
je 0x5d2876
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 4]
call fcn.005c533c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
push 0
lea eax, [esp + 0x94]
push eax
push edx
mov ecx, ebx
call fcn.005c962c
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
push 0
push 1
push ebp
push edi
sub esp, 0xdc
lea edx, [esp + 0x17c]
mov ecx, esp
push edx
call fcn.005cacec
mov ecx, esi
call fcn.005cfd3c
test eax, eax
je 0x5d3712
jmp 0x5d28cb
mov dword [esp + 0x494], 1
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x170]
call fcn.005cacec
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x16c]
push ecx
mov edx, ecx
push edx
lea eax, [ebx + 0x30]
push eax
add esi, 0x2c
call fcn.00575d0c
add esp, 0xc
test esi, esi
je 0x5d290d
push esi
lea ecx, [esp + 0x18c]
call fcn.005a367c
push edi
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x3b8]
push edx
push ebx
call fcn.005d24fc
mov ecx, dword [ebp + 4]
mov dword [esp + 0x49c], eax
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0058162c
test eax, eax
je 0x5d2967
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x20]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x170]
push edx
call fcn.0057e13c
test al, al
je 0x5d3712
mov eax, dword [ebx + 0x18]
test eax, eax
mov esi, 0x2000000
je 0x5d2ba9
cmp dword [eax + 0x78], 9
jne 0x5d2ba9
mov eax, dword [eax + 0x68]
test eax, eax
je 0x5d2aac
mov cl, byte [eax + 0x5ee]
test cl, cl
je 0x5d2aac
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x5d29ac
mov edx, dword [eax]
jmp 0x5d29ae
mov edx, eax
test edx, edx
je 0x5d29c2
test ecx, ecx
je 0x5d29b8
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x5d3712
mov eax, dword [ebx + 8]
test dword [eax + 0x54], esi
mov ecx, dword [eax + 0x78]
je 0x5d29cf
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d29ef
test dword [eax + 0x54], esi
je 0x5d29df
mov edx, dword [eax + 0x78]
mov eax, dword [edx]
jmp 0x5d29e2
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x3c]
shr eax, 1
test al, 1
je 0x5d3712
mov ecx, ebx
and ecx, 0xfffff000
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
mov eax, dword [eax + 0x23c]
test dword [eax + 0x54], esi
mov ecx, dword [eax + 0x78]
je 0x5d2a0f
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d2a2f
test dword [eax + 0x54], esi
je 0x5d2a1f
mov edx, dword [eax + 0x78]
mov eax, dword [edx]
jmp 0x5d2a22
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x3c]
shr eax, 1
test al, 1
je 0x5d3712
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x128]
test ah, 4
je 0x5d2a9d
test ah, 0x10
je 0x5d2a9d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x24], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.005c619c
mov ecx, eax
call fcn.005a3a3c
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
call fcn.00563b0c
test eax, eax
je 0x5d3712
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, ebx
call fcn.005c543c
test al, al
jne 0x5d3712
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x128]
test ch, 0x10
je 0x5d2b29
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x5d2ad1
mov cl, byte [eax + 0x5ee]
test cl, cl
jne 0x5d2b29
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.005c619c
mov ecx, eax
call fcn.005a3a3c
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + 0x18]
mov edx, dword [esp + 0x20]
push 0
push eax
push edx
call fcn.00563b0c
test eax, eax
je 0x5d2ba9
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x5d2b3f
mov eax, dword [eax + 8]
test eax, eax
je 0x5d2b3f
mov eax, dword [eax + 0x3e0]
jmp 0x5d2b41
xor eax, eax
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x174]
push edx
call fcn.005771bc
add esp, 0xc
test al, al
je 0x5d2ba9
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.005755dc
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
mov ecx, ebx
call fcn.005c97dc
push eax
call fcn.0057517c
add esp, 8
test eax, eax
je 0x5d2ba9
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.0055d73c
test eax, eax
je 0x5d3712
test dword [ebx + 0x54], esi
mov eax, dword [ebx + 0x78]
je 0x5d2bb3
mov eax, dword [eax]
test eax, eax
jne 0x5d2eda
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5d2bd7
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x5d2bd7
mov dl, byte [ecx + 0x5ee]
test dl, dl
jne 0x5d2eda
mov ecx, dword [esp + 0x498]
test ecx, ecx
je 0x5d2d1c
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x5d2d1c
mov eax, dword [eax + 0x78]
cmp eax, 6
je 0x5d2c02
cmp eax, 0x61
jne 0x5d2d1c
mov esi, dword [ebx + 0x10]
test esi, esi
mov edi, dword [esp + 0x48c]
je 0x5d2c85
mov ecx, dword [esi + 4]
cmp word [ecx + 0x56], 0
je 0x5d2c44
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push edi
sub esp, 0xdc
lea eax, [esp + 0x258]
mov ecx, esp
push eax
call fcn.005cacec
mov ecx, esi
call fcn.005cfd3c
mov esi, eax
jmp 0x5d2c81
mov ecx, dword [esp + 0x498]
mov edx, dword [esp + 0x494]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push edi
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.005cacec
mov eax, dword [esp + 0x498]
push eax
mov ecx, esi
call fcn.005d282c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5d2c10
mov ecx, dword [esp + 0x3ac]
mov eax, dword [ecx]
test eax, eax
je 0x5d2ca6
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x78]
cmp eax, 6
je 0x5d2ca6
cmp eax, 0x61
jne 0x5d3712
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x94]
call fcn.005cacec
mov ecx, dword [ebp]
mov eax, dword [esp + 0x494]
mov edx, dword [ebp + 4]
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], edx
push edi
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
mov dword [esp + 0x40], 0
call fcn.005d0fcc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d3712
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, ebx
call fcn.005c58bc
test eax, eax
je 0x5d322a
lea edx, [esp + 0x3b0]
push edx
lea ecx, [esp + 0x94]
mov ebp, ebx
xor edi, edi
call fcn.005cacec
mov eax, dword [esp + 0x490]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x68]
mov esi, dword [ecx + 0xd4]
test esi, esi
je 0x5d2e80
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x1c], 2
mov eax, dword [edx + 0xb4]
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.005bf78c
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + 0xb4]
mov ecx, dword [esi + 0xd38]
push edi
push edi
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov ecx, esi
call fcn.005fab0c
test eax, eax
je 0x5d2e77
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.005f800c
test eax, eax
je 0x5d2e77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
je 0x5d2e77
mov eax, dword [eax + 0x54]
test eax, eax
je 0x5d2e77
mov esi, dword [ebx + 8]
test esi, esi
mov ebp, eax
je 0x5d2e44
lea esp, [esp]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x5d2df8
mov eax, dword [eax + 8]
jmp 0x5d2dfa
xor eax, eax
cmp esi, dword [eax + 0xe0]
je 0x5d2e44
mov ecx, esi
call fcn.0058162c
test eax, eax
je 0x5d2e3d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov al, byte [ecx + 0x129]
test al, al
je 0x5d2e3d
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x210]
add dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x214]
add dword [esp + 0x18], ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x5d2dec
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.005c95cc
test al, al
jne 0x5d2e72
lea ecx, [esp + 0x28]
call fcn.005be29c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov edi, 1
lea ecx, [esp + 0x28]
call fcn.005be29c
mov ecx, dword [esp + 0x494]
mov eax, dword [esp + 0x48c]
push 0
push 0
push 0
push ecx
push edi
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.005d0fcc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5d3712
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5d322a
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
cmp eax, 6
je 0x5d2ef9
cmp eax, 0x61
jne 0x5d322a
mov eax, dword [ebx + 8]
test dword [eax + 0x54], esi
je 0x5d2f08
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x5d2f0b
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x5d2f27
test dword [eax + 0x54], esi
mov eax, dword [eax + 0x78]
je 0x5d2f19
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x5d3712
mov edx, ebx
and edx, 0xfffff000
mov eax, dword [edx]
mov ecx, dword [eax + 0x128]
mov eax, dword [ecx + 0x23c]
test dword [eax + 0x54], esi
je 0x5d2f49
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x5d2f4c
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x5d2f68
test dword [eax + 0x54], esi
mov eax, dword [eax + 0x78]
je 0x5d2f5a
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x5d3712
mov ecx, ebx
call fcn.005c543c
test al, al
jne 0x5d3712
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x78]
shr eax, 0x19
and eax, 1
mov dword [esp + 0x1c], 0
je 0x5d2f91
mov edx, dword [ecx]
jmp 0x5d2f93
mov edx, ecx
test edx, edx
je 0x5d30b0
test eax, eax
je 0x5d2fa1
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x3c]
shr edx, 1
test dl, 1
je 0x5d30b0
mov esi, dword [ebx + 0x10]
test esi, esi
mov ebp, dword [esp + 0x498]
je 0x5d302f
mov edi, dword [esp + 0x48c]
jmp 0x5d2fcc
mov eax, dword [esi + 4]
cmp word [eax + 0x56], 0
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x14]
je 0x5d3000
push 0
push 0
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.005cacec
mov ecx, esi
call fcn.005cfd3c
mov esi, eax
jmp 0x5d302b
mov eax, dword [esp + 0x494]
push ebp
push eax
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.005cacec
lea eax, [esp + 0x108]
push eax
mov ecx, esi
call fcn.005d282c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5d2fcc
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x5d3092
lea ebx, [ebx]
mov ecx, dword [esi + 4]
mov ax, word [ecx + 0x56]
test ax, ax
je 0x5d308b
push ebp
push 1
lea edx, [esp + 0x1c]
push edx
movzx edi, ax
mov eax, dword [esp + 0x498]
push eax
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.005cacec
lea eax, [esp + 0x108]
push eax
mov ecx, esi
call fcn.005d282c
mov esi, dword [esi + 0xc]
test esi, esi
je 0x5d3092
cmp dword [esi + 0x1c], edi
jle 0x5d307f
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5d303c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d30b0
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x5d30c2
mov edx, dword [eax]
jmp 0x5d30c4
mov edx, eax
test edx, edx
je 0x5d30e5
test ecx, ecx
je 0x5d30ce
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x5d3712
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x78], 0x61
je 0x5d3712
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x94]
mov edi, ebx
xor esi, esi
call fcn.005cacec
mov eax, dword [esp + 0x490]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x5d31d8
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x5d313a
mov edx, dword [eax]
jmp 0x5d313c
mov edx, eax
test edx, edx
je 0x5d31d8
test ecx, ecx
je 0x5d314a
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x5d31d8
mov esi, dword [ebx + 8]
test esi, esi
mov edi, dword [eax + 0x38]
je 0x5d31b7
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x5d316b
mov eax, dword [eax + 8]
jmp 0x5d316d
xor eax, eax
cmp esi, dword [eax + 0xe0]
je 0x5d31b7
mov ecx, esi
call fcn.0058162c
test eax, eax
je 0x5d31b0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov al, byte [ecx + 0x129]
test al, al
je 0x5d31b0
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x210]
add dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x214]
add dword [esp + 0x18], ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x5d315f
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.005c95cc
test al, al
je 0x5d3712
mov esi, 1
mov ecx, dword [esp + 0x494]
mov eax, dword [esp + 0x48c]
push 0
push 0
push 0
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.005d0fcc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d3712
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x5d3636
mov eax, dword [esi + 0x78]
mov ebp, 2
cmp eax, ebp
jne 0x5d3636
mov edi, dword [esi + 0x68]
test edi, edi
je 0x5d32f3
mov al, byte [edi + 0x5ee]
test al, al
je 0x5d32f3
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x5d3270
mov edx, dword [eax]
jmp 0x5d3272
mov edx, eax
test edx, edx
je 0x5d3286
test ecx, ecx
je 0x5d327c
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x5d3712
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x54]
mov edx, 0x2000000
test edx, ecx
mov ecx, dword [eax + 0x78]
je 0x5d329a
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d32b6
test dword [eax + 0x54], edx
mov eax, dword [eax + 0x78]
je 0x5d32a8
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x5d3712
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
mov eax, dword [ecx + 0x128]
mov eax, dword [eax + 0x23c]
test dword [eax + 0x54], edx
mov ecx, dword [eax + 0x78]
je 0x5d32d5
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d32f8
test dword [eax + 0x54], edx
mov eax, dword [eax + 0x78]
je 0x5d32e3
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x5d3712
jmp 0x5d32f8
mov edx, 0x2000000
mov al, byte [edi + 0x5ee]
test al, al
je 0x5d33f4
test dword [ebx + 0x54], edx
je 0x5d3312
mov edx, dword [ebx + 0x78]
mov eax, dword [edx]
jmp 0x5d3315
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5d3712
mov eax, dword [eax + 0x60]
test eax, eax
je 0x5d3712
mov esi, dword [eax + 0x38]
lea edi, [esi + 0x7c]
mov eax, edi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
call fcn.005cacec
lea edx, [esp + 0x90]
push edx
mov eax, edx
push eax
lea ecx, [esi + 0x30]
push ecx
call fcn.00575d0c
add esp, 0xc
push edi
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.005cdf0c
mov ecx, esi
call fcn.005c780c
push 0
push 1
mov ecx, esi
call fcn.005c92ec
mov ecx, dword [esp + 0x48c]
push 0
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x188]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.005d0fcc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5d33d8
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi], ebp
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x5d3636
mov eax, dword [esi + 0x70]
test eax, eax
je 0x5d3636
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
call fcn.00538c2c
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x70]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.005d42bc
mov eax, dword [ebx + 0x18]
cmp byte [eax + 0x7e], 0x22
jne 0x5d3432
add dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov al, byte [esi + ebp]
inc ebp
test al, al
mov byte [esp + 0x13], al
je 0x5d3636
mov edi, edi
lea eax, [esi + ebp]
xor ecx, ecx
add ebp, 2
mov dword [esp + 0x40], ebp
mov ch, byte [eax + 1]
xor edx, edx
mov cl, byte [eax]
lea eax, [esi + ebp]
add ebp, 2
mov dword [esp + 0x40], ebp
mov dh, byte [eax + 1]
mov edi, ecx
lea ecx, [esp + 0x3c]
mov dl, byte [eax]
lea eax, [esp + 0x248]
push eax
add dx, word [ebx + 0x1c]
mov esi, edx
call fcn.005d5e6c
mov ecx, dword [ebx + 0x18]
cmp byte [ecx + 0x7e], 0x22
jne 0x5d34a0
push 1
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x44]
call fcn.005d5fbc
mov al, byte [esp + 0x13]
xor ebp, ebp
test al, 0x10
je 0x5d34e7
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x5d34bf
call fcn.005d85cc
cmp eax, 8
jl 0x5d34e7
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call fcn.0058062c
lea ecx, [esp + 0x28]
call fcn.005805bc
test byte [esp + 0x13], 0x20
je 0x5d350c
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x5d3503
call fcn.005d85cc
cmp eax, 8
jl 0x5d350c
inc dword [esp + 0x40]
test byte [esp + 0x13], 8
je 0x5d360e
mov ecx, dword [esp + 0x1c]
push edi
call fcn.005d52cc
test eax, eax
mov dword [esp + 0x20], eax
je 0x5d360e
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
mov edx, dword [ecx + 0x128]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005aea0c
mov ebp, eax
mov eax, dword [ebx + 0x2c]
add esp, 4
push eax
mov ecx, ebp
call fcn.005850fc
mov ecx, dword [esp + 0x20]
movzx edx, si
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], edx
lea edi, [ebp + 0x30]
mov ecx, 7
lea esi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
call fcn.005a335c
lea eax, [esp + 0x7c]
push eax
mov ecx, ebp
call fcn.005cd17c
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x78], 9
jne 0x5d35a5
lea edx, [ebx + 0x20]
push edx
lea ecx, [ebp + 0x20]
call fcn.005b0a0c
mov ecx, ebp
call fcn.005cdbcc
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x94]
call fcn.005cacec
lea ecx, [esp + 0x90]
push ecx
mov edx, ecx
push edx
lea eax, [ebp + 0x30]
push eax
call fcn.00575d0c
add esp, 0xc
lea eax, [ebp + 0x7c]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebp
call fcn.005cdf0c
mov eax, dword [esp + 0x48c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebp
call fcn.005cf48c
test eax, eax
mov ecx, ebp
push 1
jne 0x5d3628
mov edx, dword [ebp]
call dword [edx]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov al, byte [esi + ebp]
inc ebp
test al, al
mov byte [esp + 0x13], al
jne 0x5d344c
jmp 0x5d3636
mov eax, dword [esp + 0x3b0]
mov dword [eax], ebx
mov edx, dword [ebp]
call dword [edx]
mov esi, dword [ebx + 0x10]
test esi, esi
mov edi, dword [esp + 0x48c]
je 0x5d36af
mov ebp, dword [esp + 0x494]
nop
mov eax, dword [esi + 4]
cmp word [eax + 0x56], 0
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x14]
je 0x5d3680
push 0
push 0
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.005cacec
mov ecx, esi
call fcn.005cfd3c
mov esi, eax
jmp 0x5d36ab
mov eax, dword [esp + 0x498]
push eax
push ebp
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.005cacec
mov eax, dword [esp + 0x498]
push eax
mov ecx, esi
call fcn.005d282c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5d364c
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x5d3712
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
mov ax, word [ecx + 0x56]
test ax, ax
je 0x5d370b
mov edx, dword [esp + 0x498]
push edx
push 1
movzx esi, ax
lea eax, [esp + 0x1c]
push eax
push edi
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.005cacec
mov eax, dword [esp + 0x498]
push eax
mov ecx, ebx
call fcn.005d282c
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x5d3712
cmp dword [ebx + 0x1c], esi
jle 0x5d36ff
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x5d36bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0