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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
xor ebp, ebp
push edi
cmp dword [esi + 8], ebp
je 0x527967
push esi
call fcn.00530a60
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebp
je 0x526b9f
mov eax, dword [esi + 0xc]
test ah, 0x10
je 0x526b2f
and ah, 0xef
push esi
mov dword [esi + 0xc], eax
call dword [esi + 0x228]
add esp, 4
test eax, eax
jne 0x526b2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push esi
call dword [esi + 0x244]
mov eax, dword [esi + 0x278]
add esp, 4
cmp eax, ebp
jle 0x526b5e
test byte [esi + 0xc], 0x40
je 0x526b5e
push esi
call fcn.00526500
add esp, 4
test eax, eax
jne 0x526b5e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0xc]
test ah, 2
je 0x526b97
mov eax, dword [esi + 0x264]
cmp eax, ebp
je 0x526b97
push eax
call fcn.0051e490
add esp, 4
mov dword [esi + 0x264], ebp
mov dword [esi + 0x278], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], ebp
mov dword [esi + 0x270], ebp
mov eax, dword [esi + 0xc]
and al, 0xaf
mov dword [esi + 0xc], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], 0
test eax, eax
je 0x527361
test byte [esi + 0x28], 2
je 0x526c01
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x3c]
push eax
push pe_nt_image_headers32
push ebp
push ecx
push esi
call fcn.00528290
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov edx, dword [esi + 0x3c]
lea eax, [esp + 0x3c]
push edx
push 0x101
push ebp
push eax
push esi
call fcn.00528290
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x28], 4
je 0x526c47
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x3c]
push ecx
push 0x142
push ebp
push edx
push esi
call fcn.00528290
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x3c]
push eax
push 0x143
push ebp
push ecx
push esi
call fcn.00528290
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x28], 8
je 0x526c97
fld dword [esi + 0x74]
sub esp, 8
lea edx, [esp + 0x44]
fstp qword [esp]
push 0x11a
push ebp
push edx
push esi
call fcn.00528160
add esp, 0x18
test eax, eax
je case.0x52727b.5
fld dword [esi + 0x78]
sub esp, 8
lea eax, [esp + 0x44]
fstp qword [esp]
push 0x11b
push ebp
push eax
push esi
call fcn.00528160
add esp, 0x18
test eax, eax
je case.0x52727b.5
test byte [esi + 0x28], 0x10
je 0x526ced
fld dword [esi + 0x80]
sub esp, 8
lea ecx, [esp + 0x44]
fstp qword [esp]
push 0x11e
push ebp
push ecx
push esi
call fcn.00528160
add esp, 0x18
test eax, eax
je case.0x52727b.5
fld dword [esi + 0x84]
sub esp, 8
lea edx, [esp + 0x44]
fstp qword [esp]
push 0x11f
push ebp
push edx
push esi
call fcn.00528160
add esp, 0x18
test eax, eax
je case.0x52727b.5
test byte [esi + 0x28], 0x20
je 0x526d13
mov eax, dword [esi + 0x50]
lea ecx, [esp + 0x3c]
push eax
push 0xfe
push ebp
push ecx
push esi
call fcn.00528070
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x28], 0x40
je 0x526d3a
mov dx, word [esi + 0x54]
lea eax, [esp + 0x3c]
push edx
push 0x102
push ebp
push eax
push esi
call fcn.00527fb0
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov al, byte [esi + 0x28]
test al, al
jns 0x526d62
mov cx, word [esi + 0x58]
lea edx, [esp + 0x3c]
push ecx
push 0x103
push ebp
push edx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
test ah, 1
je 0x526d8b
mov ax, word [esi + 0x5a]
lea ecx, [esp + 0x3c]
push eax
push 0x106
push ebp
push ecx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
test ah, 2
je 0x526db4
mov dx, word [esi + 0x5c]
lea eax, [esp + 0x3c]
push edx
push 0x107
push ebp
push eax
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
mov edi, 0x400
test edi, eax
je 0x526de1
mov cx, word [esi + 0x5e]
lea edx, [esp + 0x3c]
push ecx
push 0x10a
push ebp
push edx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
test ah, ah
jns 0x526e09
mov ax, word [esi + 0x60]
lea ecx, [esp + 0x3c]
push eax
push 0x112
push ebp
push ecx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x10000
je 0x526e33
mov dx, word [esi + 0x62]
lea eax, [esp + 0x3c]
push edx
push 0x115
push ebp
push eax
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
mov ebx, 0x20000
test ebx, eax
je 0x526e5f
mov ecx, dword [esi + 0x64]
lea edx, [esp + 0x3c]
push ecx
push 0x116
push ebp
push edx
push esi
call fcn.00528290
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x40000
je 0x526e89
mov ax, word [esi + 0x68]
lea ecx, [esp + 0x3c]
push eax
push 0x118
push ebp
push ecx
push esi
call fcn.00527fb0
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x80000
je 0x526eb3
mov dx, word [esi + 0x6a]
lea eax, [esp + 0x3c]
push edx
push 0x119
push ebp
push eax
push esi
call fcn.00527fb0
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x100000
je 0x526edd
mov cx, word [esi + 0x7e]
lea edx, [esp + 0x3c]
push ecx
push 0x11c
push ebp
push edx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x400000
je 0x526f07
mov ax, word [esi + 0x7c]
lea ecx, [esp + 0x3c]
push eax
push 0x128
push ebp
push ecx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x800000
je 0x526f35
lea edx, [esi + 0x88]
lea eax, [esp + 0x3c]
push edx
push 2
push 0x129
push ebp
push eax
push esi
call fcn.00527f80
add esp, 0x18
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x1000000
je 0x526f76
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xa8]
push ecx
test edi, eax
push edx
lea eax, [esp + 0x44]
jne 0x526f5e
push 0x117
jmp 0x526f63
push 0x145
push ebp
push eax
push esi
call fcn.005282d0
add esp, 0x18
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x2000000
je 0x526fc1
test dword [esi + 0xc], edi
mov eax, dword [esi + 0xac]
jne 0x526f9d
test eax, eax
je 0x526fc1
mov ecx, dword [esi + 0xa8]
push eax
push ecx
push 0x111
jmp 0x526faa
mov ecx, dword [esi + 0xa8]
push eax
push ecx
push 0x144
lea edx, [esp + 0x48]
push ebp
push edx
push esi
call fcn.005282d0
add esp, 0x18
test eax, eax
je case.0x52727b.5
test dword [esi + 0x28], 0x4000000
je 0x526fe1
lea eax, [esp + 0x3c]
push ebp
push eax
push esi
call fcn.00528470
add esp, 0xc
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x28]
test eax, eax
jns 0x527033
cmp word [esi + 0x9c], 0
je 0x527033
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x152
push esi
call fcn.0051a080
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
push eax
push ecx
push 0x152
lea edx, [esp + 0x58]
push ebp
push edx
push esi
call fcn.00527f80
add esp, 0x28
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 1
je 0x52705a
mov ax, word [esi + 0x56]
lea ecx, [esp + 0x3c]
push eax
push 0x153
push ebp
push ecx
push esi
call fcn.00527fb0
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 2
je 0x527087
mov edx, dword [esi + 0x6c]
xor eax, eax
mov ax, word [esi + 0x62]
push edx
push eax
push 0x154
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527a00
add esp, 0x18
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 4
je 0x5270b4
mov edx, dword [esi + 0x70]
xor eax, eax
mov ax, word [esi + 0x62]
push edx
push eax
push 0x155
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527a00
add esp, 0x18
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 8
je 0x5270da
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x3c]
push edx
push 0x80e5
push ebp
push eax
push esi
call fcn.00528070
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 0x10
je 0x527100
mov ecx, dword [esi + 0x4c]
lea edx, [esp + 0x3c]
push ecx
push 0x80e6
push ebp
push edx
push esi
call fcn.00528070
add esp, 0x14
test eax, eax
je case.0x52727b.5
test byte [esi + 0x2c], 0x20
je 0x52712b
lea eax, [esi + 0x98]
lea ecx, [esp + 0x3c]
push eax
push 2
push 0x141
push ebp
push ecx
push esi
call fcn.00527f80
add esp, 0x18
test eax, eax
je case.0x52727b.5
mov al, byte [esi + 0x2c]
test al, al
jns 0x527157
lea edx, [esi + 0xc0]
lea eax, [esp + 0x3c]
push edx
push 2
push 0x212
push ebp
push eax
push esi
call fcn.00527f80
add esp, 0x18
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2c]
test ah, 1
je 0x527183
mov cx, word [esi + 0xc4]
lea edx, [esp + 0x3c]
push ecx
push 0x213
push ebp
push edx
push esi
call fcn.00527f50
add esp, 0x14
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2c]
test ah, 2
je 0x5271b0
mov eax, dword [esi + 0xd4]
lea ecx, [esp + 0x3c]
push eax
push 6
push 0x214
push ebp
push ecx
push esi
call fcn.005281a0
add esp, 0x18
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2c]
test ah, 0x10
je 0x5271cf
lea edx, [esp + 0x3c]
push ebp
push edx
push esi
call fcn.00528520
add esp, 0xc
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2c]
test ah, 0x40
je 0x527201
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
push eax
push ecx
push 0x14d
lea edx, [esp + 0x48]
push ebp
push edx
push esi
call fcn.00527e90
add esp, 0x18
test eax, eax
je case.0x52727b.5
test dword [esi + 0x2c], ebx
je 0x52721d
lea eax, [esp + 0x3c]
push ebp
push eax
push esi
call fcn.00528670
add esp, 0xc
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2ac]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jbe 0x527361
mov ecx, dword [esi + 0x2a8]
mov ebx, dword [ecx + edi*4]
mov ax, word [ebx + 0x18]
cmp ax, 0x42
jb 0x52734e
and eax, 0xffff
mov edx, 1
mov ecx, eax
and ecx, 0x1f
shl edx, cl
shr eax, 5
test dword [esi + eax*4 + 0x28], edx
je 0x52734e
mov eax, dword [ebx + 0x14]
dec eax
cmp eax, 0x27
ja case.0x52727b.5
xor ecx, ecx
mov cl, byte [eax + 0x527988]
jmp dword [ecx*4 + 0x527974]
mov eax, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
push esi
call fcn.0051a2b0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
mov cx, word [ebx]
push ecx
lea edx, [esp + 0x54]
push ebp
push edx
push esi
call fcn.00527e90
add esp, 0x24
test eax, eax
je case.0x52727b.5
mov edi, dword [esp + 0x10]
jmp 0x52734e
mov ecx, dword [ebx]
lea eax, [esp + 0x28]
push eax
push ecx
push esi
call fcn.0051a2b0
mov edx, dword [esp + 0x34]
mov ax, word [ebx]
push edx
push eax
lea ecx, [esp + 0x50]
push ebp
push ecx
push esi
call fcn.00527f50
add esp, 0x20
jmp 0x527346
mov eax, dword [ebx]
lea edx, [esp + 0x2c]
push edx
push eax
push esi
call fcn.0051a2b0
mov ecx, dword [esp + 0x38]
mov dx, word [ebx]
push ecx
push edx
lea eax, [esp + 0x50]
push ebp
push eax
push esi
call fcn.00528070
add esp, 0x20
jmp 0x527346
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
push esi
call fcn.0051a2b0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ax, word [ebx]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ebp
push ecx
push esi
call fcn.00527ec0
add esp, 0x28
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0x2ac]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x527231
mov eax, dword [esi + 0xe0]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jbe 0x527515
mov edx, dword [esi + 0xe4]
mov ebx, dword [edx + edi]
lea eax, [edx + edi]
mov cx, word [ebx]
mov ebx, dword [ebx + 8]
mov edx, dword [eax + 4]
dec ebx
cmp ebx, 0x11
ja case.0x527394.14
jmp dword [ebx*4 + 0x5279b0]
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527e90
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527ec0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527ef0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527f20
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00527f80
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528040
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.005280a0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.005280d0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528100
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528130
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.005281a0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.005281d0
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528200
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528230
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.00528260
jmp 0x5274f4
mov eax, dword [eax + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x48]
push ebp
push ecx
push esi
call fcn.005283a0
add esp, 0x18
test eax, eax
je case.0x52727b.5
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe0]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x527375
test ebp, ebp
jne 0x52767a
mov eax, dword [esp + 0x3c]
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.0051e450
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x527573
mov eax, dword [esp + 0x40]
test eax, eax
je 0x52757d
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
or eax, ecx
jne 0x5275a1
push esi
call fcn.00529260
add esp, 4
test eax, eax
jne 0x5275a1
test ebp, ebp
je 0x527562
push ebp
call fcn.0051e490
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x527573
push eax
call fcn.0051e490
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x28c]
push 2
push 0
push 0
push ecx
call dword [esi + 0x298]
add esp, 0x10
add eax, 1
adc edx, 0
and al, 0xfe
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5275b4
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
and eax, 0x80000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
jne 0x5275d2
lea edx, [eax + eax*2]
lea ecx, [edx*4 + 6]
jmp 0x5275dc
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 0x10]
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
xor edi, edi
add ecx, ebx
mov edx, edi
mov dword [esi + 0x1e8], ecx
mov ecx, dword [esp + 0x10]
adc edx, eax
test ecx, ecx
mov dword [esi + 0x1ec], edx
jne 0x527614
mov ecx, dword [esi + 0x1e8]
mov dword [esi + 0x1ec], edi
mov dword [esi + 0x1e8], ecx
mov edx, dword [esi + 0x1ec]
mov ecx, dword [esi + 0x1e8]
cmp edx, eax
jb case.0x52727b.5
ja 0x527632
cmp ecx, ebx
jb case.0x52727b.5
cmp edx, edi
jb case.0x52727b.5
ja 0x527646
cmp ecx, dword [esp + 0x14]
jb case.0x52727b.5
mov eax, ecx
xor edi, edi
and eax, 1
or eax, edi
je 0x527662
add ecx, 1
adc edx, edi
mov dword [esi + 0x1e8], ecx
mov dword [esi + 0x1ec], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x526ba7
inc word [esi + 0x1d8]
jmp 0x526ba7
mov eax, dword [esp + 0x40]
test eax, eax
je 0x527719
test dword [esi + 0x2c], 0x20000
je 0x527719
mov edx, dword [esi + 0x1f8]
mov eax, dword [esi + 0x1fc]
or edx, eax
jne 0x527719
mov edx, dword [esp + 0x3c]
xor eax, eax
test edx, edx
mov ecx, ebp
je case.0x52727b.5
cmp word [ecx], 0x14a
je 0x5276c7
inc eax
add ecx, 0x18
cmp eax, edx
jne 0x5276b3
jmp case.0x52727b.5
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 0x14]
test ecx, 0x80000
jne 0x5276f8
mov edx, dword [esi + 0x10]
lea eax, [eax + eax*2]
shl eax, 2
xor ecx, ecx
add eax, edx
adc ecx, ebx
add eax, 0xa
adc ecx, 0
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], ecx
jmp 0x527719
mov ecx, dword [esi + 0x10]
lea edx, [eax + eax*4]
shl edx, 2
xor eax, eax
add edx, ecx
adc eax, ebx
add edx, 0x14
adc eax, 0
mov dword [esi + 0x1f8], edx
mov dword [esi + 0x1fc], eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0051e450
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je case.0x52727b.5
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x18]
test eax, 0x80000
jne 0x52782d
mov dx, word [esp + 0x3c]
mov word [ebx], dx
mov al, byte [esi + 0xc]
test al, al
jns 0x52775c
push ebx
call fcn.00530a70
add esp, 4
mov eax, dword [esp + 0x3c]
add ebx, 2
test eax, eax
mov dword [esp + 0x10], 0
jbe 0x5277fd
lea edi, [ebp + 8]
mov ax, word [edi - 8]
mov word [ebx], ax
mov al, byte [esi + 0xc]
test al, al
jns 0x52778d
push ebx
call fcn.00530a70
add esp, 4
mov cx, word [edi - 6]
add ebx, 2
mov word [ebx], cx
mov al, byte [esi + 0xc]
test al, al
jns 0x5277a7
push ebx
call fcn.00530a70
add esp, 4
mov edx, dword [edi]
lea eax, [esp + 0x40]
add ebx, 2
push 4
push eax
push ebx
mov dword [esp + 0x4c], edx
call fcn.0051e4e0
mov al, byte [esi + 0xc]
add esp, 0xc
test al, al
jns 0x5277d0
push ebx
call fcn.00530a80
add esp, 4
lea ecx, [edi + 8]
add ebx, 4
push 4
push ecx
push ebx
call fcn.0051e4e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add esp, 0xc
add ebx, 4
add edi, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x527776
mov al, byte [esi + 0xc]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esp + 0x40], edx
jns 0x527818
lea eax, [esp + 0x40]
push eax
call fcn.00530a80
add esp, 4
lea ecx, [esp + 0x40]
push 4
push ecx
push ebx
call fcn.0051e4e0
add esp, 0xc
jmp 0x5278f2
mov edx, dword [esp + 0x3c]
xor edi, edi
mov dword [ebx], edx
mov dword [ebx + 4], edi
mov al, byte [esi + 0xc]
test al, al
jns 0x527848
push ebx
call fcn.00530aa0
add esp, 4
mov eax, dword [esp + 0x3c]
add ebx, 8
cmp eax, edi
mov dword [esp + 0x10], edi
jbe 0x5278d3
lea edi, [ebp + 8]
mov ax, word [edi - 8]
mov word [ebx], ax
mov al, byte [esi + 0xc]
test al, al
jns 0x527871
push ebx
call fcn.00530a70
add esp, 4
mov cx, word [edi - 6]
add ebx, 2
mov word [ebx], cx
mov al, byte [esi + 0xc]
test al, al
jns 0x52788b
push ebx
call fcn.00530a70
add esp, 4
add ebx, 2
push 8
push edi
push ebx
call fcn.0051e4e0
mov al, byte [esi + 0xc]
add esp, 0xc
test al, al
jns 0x5278aa
push ebx
call fcn.00530aa0
add esp, 4
lea edx, [edi + 8]
add ebx, 8
push 8
push edx
push ebx
call fcn.0051e4e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add esp, 0xc
add ebx, 8
add edi, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x52785a
lea eax, [esi + 0x18]
push 8
push eax
push ebx
call fcn.0051e4e0
mov al, byte [esi + 0xc]
add esp, 0xc
test al, al
jns 0x5278f2
push ebx
call fcn.00530aa0
add esp, 4
push ebp
call fcn.0051e490
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push esi
call fcn.0051a0e0
add esp, 0x10
test eax, eax
je 0x527562
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x28c]
push edi
push ebx
push eax
call dword [esi + 0x294]
add esp, 0xc
cmp eax, edi
je 0x527934
jmp 0x527562
push ebx
call fcn.0051e490
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x527967
push esi
call fcn.0051a370
mov ebx, dword [esi + 0xc]
push esi
and ebx, 0xffdffff7
mov dword [esi + 0xc], ebx
call dword [esi + 0x24c]
push esi
call fcn.0051a530
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret