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

Disassembly:
mov eax, 0x258
call fcn.00544cc0
mov eax, dword [0x5ca120]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x274]
push 1
push eax
lea ecx, [esp + 0x1b0]
push ecx
mov dword [esp + 0x24], 0
call fcn.00542230
mov ecx, 0x10
mov esi, 0x5a7dd0
lea edi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x5a7d90
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x34]
sub eax, 4
mov ecx, 0x10
lea esi, [esp + 0x1b4]
lea edi, [esp + 0x174]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], eax
mov ecx, 0x10
mov esi, 0x5a7dd0
lea edi, [esp + 0xb4]
lea eax, [esp + 0xb4]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1bf
sub eax, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
lea ebx, [esp + 0x64]
jmp 0x522e24
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x274]
mov eax, ecx
shr eax, 3
mov dl, byte [eax + edx]
test eax, eax
jne 0x522e3c
and dl, 0xfc
jmp 0x522e47
cmp ecx, 0x1bf
jne 0x522e47
or dl, 0xff
mov edi, dword [esp + 0x14]
movzx ecx, cl
movzx ebp, dl
and ecx, 7
shr ebp, cl
lea ecx, [esp + 0x164]
lea edx, [esp + 0xe4]
and ebp, 1
neg ebp
xor edi, ebp
call fcn.00522140
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
call fcn.00522140
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x28]
lea esi, [esp + 0xe8]
mov dword [esp + 0x18], ebp
call fcn.00521fc0
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00522030
add esp, 8
xor eax, eax
nop
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x60], ecx
cmp eax, 0x10
jb 0x522eb0
mov ecx, dword [esp + 0xa0]
shr ecx, 0x1c
add dword [esp + 0x84], ecx
mov eax, 0xf
nop
mov esi, dword [esp + eax*4 + 0x64]
mov edx, dword [ebx + eax*4 - 4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x68], edx
jne 0x522ee0
mov eax, dword [esp + 0x64]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xa8]
lea esi, [esp + 0x168]
mov dword [esp + 0x68], eax
call fcn.00522030
add esp, 4
xor eax, eax
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x20], ecx
cmp eax, 0x10
jb 0x522f26
mov ecx, dword [esp + 0x60]
shr ecx, 0x1c
add dword [esp + 0x44], ecx
mov eax, 0xf
nop
mov edx, dword [esp + 0x18]
mov edx, dword [edx + eax*4]
mov esi, dword [esp + eax*4 + 0x24]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x28], edx
jne 0x522f50
mov eax, dword [esp + 0x24]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x128]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0xec]
push eax
call fcn.00542360
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x174]
lea esi, [esp + 0xb4]
call fcn.00521fc0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x17c]
push ecx
call fcn.00542360
mov edx, esi
push edx
lea ecx, [esp + 0x184]
lea esi, [esp + 0x104]
call fcn.00522030
add esp, 0x20
xor eax, eax
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0xa0], ecx
cmp eax, 0x10
jb 0x522fe0
mov ecx, dword [esp + 0xe0]
shr ecx, 0x1c
add dword [esp + 0xc4], ecx
mov eax, 0xf
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
mov esi, dword [esp + eax*4 + 0xa4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0xa8], edx
jne 0x523012
mov eax, dword [esp + 0xa4]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0xac], eax
call fcn.00542c70
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1b0]
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.00542360
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
lea esi, [esp + 0xfc]
call fcn.00521fc0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x180]
push edx
call fcn.00542c70
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00542c70
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x150]
push eax
call fcn.00542c70
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x58]
push edx
mov eax, esi
push eax
call fcn.00542360
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x164]
lea esi, [esp + 0x64]
call fcn.00522030
add esp, 0x40
xor eax, eax
lea esp, [esp]
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x60], ecx
cmp eax, 0x10
jb 0x523100
mov ecx, dword [esp + 0xa0]
shr ecx, 0x1c
add dword [esp + 0x84], ecx
mov eax, 0xf
nop
mov esi, dword [esp + eax*4 + 0x64]
mov edx, dword [ebx + eax*4 - 4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x68], edx
jne 0x523130
mov eax, dword [esp + 0x64]
and eax, 0xfffffff
add eax, ecx
push 0x98a9
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x70], eax
call fcn.005428a0
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00521fc0
mov ecx, esi
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00542360
add esp, 0x1c
dec dword [esp + 0x10]
jns 0x522e20
mov edi, ebp
lea ecx, [esp + 0x164]
lea edx, [esp + 0xe4]
call fcn.00522140
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
call fcn.00522140
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1e8]
push edx
call fcn.00542c70
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00541c90
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x1f8]
push eax
call fcn.00542c70
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x200]
push edx
lea eax, [esp + 0x244]
push eax
call fcn.00542360
mov ecx, 0x10
lea esi, [esp + 0x248]
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x1d0]
push eax
call fcn.00542360
mov edx, dword [esp + 0x4c]
push 1
lea ecx, [esp + 0x1d8]
push ecx
push edx
call fcn.005420a0
lea eax, [esp + 0x1e0]
push 0x5a7d90
push eax
call fcn.00541bb0
add esp, 0x44
lea ecx, [esp + 0x1a4]
mov esi, eax
push 0x40
push ecx
not esi
call fcn.00484bb0
lea edx, [esp + 0xec]
push 0x40
push edx
call fcn.00484bb0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.00484bb0
lea ecx, [esp + 0x17c]
push 0x40
push ecx
call fcn.00484bb0
lea edx, [esp + 0xc4]
push 0x40
push edx
call fcn.00484bb0
lea eax, [esp + 0x14c]
push 0x40
push eax
call fcn.00484bb0
lea ecx, [esp + 0x94]
push 0x40
push ecx
call fcn.00484bb0
mov ecx, dword [esp + 0x29c]
add esp, 0x38
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005448c8
add esp, 0x258
ret