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

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x48]
push edi
mov eax, dword [esi + 0x160]
mov dword [esp + 0x20], eax
cmp ebp, dword [esi + 0x90]
jne 0x52f3e3
lea ecx, [esi + 0x120]
lea ebx, [esi + 0x11c]
mov dword [esp + 0x18], ecx
jmp 0x52f3f0
mov ebx, dword [esi + 0x128]
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov dword [ebx], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x54]
mov edi, dword [esp + 0x5c]
push ecx
push edi
push eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov edx, dword [esp + 0x28]
add eax, 5
mov ecx, dword [esp + 0x64]
add esp, 0x10
mov dword [edx], ecx
cmp eax, 0x12
ja case.default.0x52f42e
jmp dword [eax*4 + 0x52fee0]
mov eax, dword [esp + 0x54]
sub eax, dword [ebp + 0x40]
push eax
mov eax, dword [esp + 0x5c]
add eax, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x2c]
push ebp
call eax
movzx eax, ax
add esp, 0xc
mov dword [esp + 0x24], eax
test ax, ax
je 0x52f493
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x52f42e
push 1
lea ecx, [esp + 0x28]
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x52f502
cmp dword [esi + 0x50], 0
je 0x52f502
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
jmp 0x52f502
mov eax, dword [esp + 0x54]
sub eax, dword [ebp + 0x40]
mov edi, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x5c]
add eax, dword [ebp + 0x40]
push eax
lea eax, [edi + 0x50]
push ebp
push eax
call fcn.00535480
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x52fccb
push 0
push ebx
push edi
push esi
call fcn.005335c0
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x81], 0
mov ecx, dword [eax + 0x60]
mov dword [eax + 0x5c], ecx
je 0x52f550
cmp byte [eax + 0x82], 0
jne 0x52f550
test edi, edi
jne 0x52f562
mov eax, dword [esi + 0x78]
test eax, eax
je 0x52f536
push edi
push ebx
push dword [esi + 4]
call eax
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov dword [ebx], eax
mov eax, dword [esi + 0x1dc]
sub eax, 2
je 0x52fed1
dec eax
jne 0x52f400
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x38
ret
cmp dword [esi + 0x50], 0
je 0x52f4fe
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
jmp 0x52f4fe
test edi, edi
je 0x52fcb5
cmp byte [edi + 0x22], 0
je 0x52fca8
cmp byte [edi + 0x20], 0
jne 0x52fc9b
cmp dword [edi + 0x1c], 0
jne 0x52fc8e
cmp dword [edi + 4], 0
je 0x52f5ae
cmp byte [esi + 0x130], 0
jne 0x52f595
mov eax, dword [esi + 0x78]
test eax, eax
je 0x52f536
push 0
push dword [edi]
jmp 0x52f4f6
push 0
push edi
push esi
call fcn.005354d0
add esp, 0xc
test eax, eax
jne 0x52fed6
jmp 0x52f4fe
cmp dword [esi + 0x70], 0
je 0x52f536
push esi
mov byte [edi + 0x20], 1
call fcn.00532b20
add esp, 4
mov byte [edi + 0x20], 0
test eax, eax
je 0x52fccb
push dword [edi + 0x18]
push dword [edi + 0x10]
push dword [edi + 0x14]
push eax
push dword [esi + 0x74]
mov eax, dword [esi + 0x70]
call eax
add esp, 0x14
test eax, eax
je 0x52fc81
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1a8], eax
jmp 0x52f4fe
mov ebx, dword [esi + 0x16c]
test ebx, ebx
je 0x52f60f
mov eax, dword [ebx]
mov dword [esi + 0x16c], eax
jmp 0x52f63e
mov eax, dword [esi + 0xc]
push 0x30
call eax
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52fccb
mov ecx, dword [esi + 0xc]
push 0x20
call ecx
add esp, 4
mov dword [ebx + 0x24], eax
test eax, eax
je 0x52fcc2
add eax, 0x20
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
mov eax, dword [esi + 0x168]
mov dword [ebx], eax
mov dword [esi + 0x168], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [esp + 0x58]
add eax, dword [ebp + 0x40]
push eax
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x1c]
push ebp
call eax
mov dword [ebx + 8], eax
inc dword [esi + 0x134]
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
add edi, eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
sub eax, 2
mov dword [esp + 0x30], edi
push eax
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x60]
push eax
mov eax, dword [ebp + 0x3c]
push ebp
call eax
mov ecx, eax
add esp, 0x1c
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 0x24]
sar eax, 1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x4c], edi
jae 0x52f72b
cmp ecx, 1
je 0x52f72b
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
sub edi, eax
add edi, edi
push edi
push eax
mov eax, dword [esi + 0x10]
call eax
add esp, 8
test eax, eax
je 0x52fccb
lea ecx, [eax + edi]
mov dword [ebx + 0x24], eax
mov edi, dword [esp + 0x28]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x28]
sub eax, 2
push eax
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x58]
push eax
mov eax, dword [ebp + 0x3c]
push ebp
call eax
mov ecx, eax
add esp, 0x14
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 0x24]
sar eax, 1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x4c], edi
jb 0x52f6c2
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0xc]
mov eax, dword [ebx + 0x24]
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov word [eax], cx
lea eax, [ebx + 0x2c]
push eax
push edi
push dword [esp + 0x60]
push ebp
push esi
call fcn.005365b0
add esp, 0x14
test eax, eax
jne 0x52fed6
mov eax, dword [esi + 0x34]
test eax, eax
je 0x52f785
push dword [esi + 0x184]
push dword [edi]
push dword [esi + 4]
call eax
add esp, 0xc
lea eax, [esi + 0x19c]
push eax
call fcn.00534dd0
add esp, 4
jmp 0x52f4fe
cmp dword [esi + 0x50], 0
je 0x52f79d
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
lea eax, [esi + 0x19c]
push eax
call fcn.00534dd0
add esp, 4
jmp 0x52f4fe
mov edi, dword [ebp + 0x40]
add edi, dword [esp + 0x58]
mov eax, dword [ebp + 0x1c]
push edi
push ebp
mov dword [esp + 0x24], 0
mov byte [esp + 0x54], 1
call eax
add eax, edi
lea ebx, [esi + 0x19c]
push eax
push edi
push ebp
push ebx
call fcn.00534970
add esp, 0x18
test eax, eax
je 0x52fccb
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 8]
jne 0x52f801
push ebx
call fcn.00535290
add esp, 4
test al, al
je 0x52fccb
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x10]
add dword [ebx + 0xc], 2
mov dword [esp + 0x30], eax
test eax, eax
je 0x52fccb
mov eax, dword [esi + 0x1a8]
mov dword [esi + 0x1ac], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x60]
push ebp
push esi
call fcn.005365b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x52fcf5
mov eax, dword [esi + 0x1a8]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x1ac], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x52f874
push dword [esi + 0x184]
push edi
push dword [esi + 4]
call eax
add esp, 0xc
xor al, al
jmp 0x52f878
mov al, byte [esp + 0x4c]
cmp dword [esi + 0x38], 0
je 0x52f89e
cmp dword [esi + 0x34], 0
je 0x52f890
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
push edi
push dword [esi + 4]
call eax
add esp, 8
jmp 0x52f8ba
test al, al
je 0x52f8ba
cmp dword [esi + 0x50], 0
je 0x52f8ba
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
push ebx
call fcn.00534dd0
push dword [esp + 0x20]
push esi
call fcn.00532800
add esp, 0xc
cmp dword [esi + 0x134], 0
jne 0x52f4fe
mov eax, dword [esi + 0x1dc]
cmp eax, 2
je 0x52f4fe
cmp eax, 3
jne 0x52fcd8
mov dword [esi + 0x114], fcn.005322e0
jmp 0x52f4fe
mov eax, dword [esp + 0x50]
cmp dword [esi + 0x134], eax
je 0x52fdc5
mov ebx, dword [esi + 0x168]
mov eax, dword [ebx]
mov dword [esi + 0x168], eax
mov eax, dword [esi + 0x16c]
mov dword [ebx], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x16c], ebx
mov ecx, dword [ebp + 0x40]
lea eax, [eax + ecx*2]
push eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x1c]
push ebp
call eax
mov edi, eax
add esp, 8
cmp edi, dword [ebx + 8]
jne 0x52fd0c
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x4c]
sub edi, 4
jb 0x52f971
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x52f976
add ecx, 4
add edx, 4
sub edi, 4
jae 0x52f960
cmp edi, 0xfffffffc
je 0x52f9b3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x52fd0c
cmp edi, 0xfffffffd
je 0x52f9b3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x52fd0c
cmp edi, 0xfffffffe
je 0x52f9b3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x52fd0c
cmp edi, 0xffffffff
je 0x52f9b3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x52fd0c
dec dword [esi + 0x134]
cmp dword [esi + 0x38], 0
je 0x52fa46
cmp byte [esi + 0xe8], 0
mov edx, dword [ebx + 0x10]
je 0x52fa36
test edx, edx
je 0x52fa36
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
lea ecx, [eax + ecx*2]
movzx eax, word [edx]
test ax, ax
je 0x52f9f5
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x52f9e4
cmp byte [esi + 0xe9], 0
mov edx, dword [ebx + 0x14]
je 0x52fa31
test edx, edx
je 0x52fa31
mov ax, word [esi + 0x1d4]
mov word [ecx], ax
add ecx, 2
movzx eax, word [edx]
test ax, ax
je 0x52fa31
lea ebx, [ebx]
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x52fa20
xor eax, eax
mov word [ecx], ax
push dword [ebx + 0xc]
mov eax, dword [esi + 0x38]
push dword [esi + 4]
call eax
add esp, 8
jmp 0x52fa5e
cmp dword [esi + 0x50], 0
je 0x52fa5e
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
cmp dword [ebx + 0x2c], 0
je 0x52f8cd
mov ecx, dword [esi + 0x68]
mov edi, dword [ebx + 0x2c]
test ecx, ecx
je 0x52fa7e
mov eax, dword [edi]
push dword [eax]
push dword [esi + 4]
call ecx
add esp, 8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 4]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x174]
mov dword [edi + 4], eax
mov dword [esi + 0x174], edi
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
cmp dword [ebx + 0x2c], 0
jne 0x52fa68
jmp 0x52f8cd
push dword [esp + 0x58]
mov eax, dword [ebp + 0x28]
push ebp
call eax
add esp, 8
test eax, eax
js 0x52fd23
cmp dword [esi + 0x3c], 0
je case.default.0x52f42e
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.00542240
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
mov eax, dword [esi + 0x3c]
call eax
add esp, 0x14
jmp 0x52f502
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x52f42e
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0xa
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x52f502
mov eax, dword [esi + 0x48]
test eax, eax
je 0x52fb21
push dword [esi + 4]
call eax
add esp, 4
jmp 0x52fb39
cmp dword [esi + 0x50], 0
je 0x52fb39
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
push dword [esp + 0x64]
lea eax, [esp + 0x58]
push dword [esp + 0x64]
push edi
push eax
push ebp
push esi
call fcn.0052f0d0
add esp, 0x18
test eax, eax
jne 0x52fed6
cmp dword [esp + 0x54], eax
jne 0x52f502
pop edi
mov dword [esi + 0x114], 0x52ece0
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x52f536
cmp byte [ebp + 0x45], 0
je 0x52fba3
mov ecx, dword [esp + 0x58]
test cl, 1
jne 0x52fba3
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 1
push eax
push ecx
push dword [esi + 4]
call ebx
jmp 0x52f4fb
push dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0x3c]
push ebp
call eax
mov ecx, dword [esp + 0x6c]
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x60]
sub ecx, edx
sar ecx, 1
push ecx
push edx
push dword [esi + 4]
call ebx
add esp, 0x20
test edi, edi
je 0x52f4fe
lea ebx, [ebx]
cmp edi, 1
je 0x52f4fe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
mov dword [ecx], eax
push dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0x3c]
push ebp
call eax
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x6c]
mov dword [ecx], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 1
push eax
push ecx
push dword [esi + 4]
call ebx
add esp, 0x20
test edi, edi
jne 0x52fbf0
jmp 0x52f4fe
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.00535a90
add esp, 0x10
test eax, eax
je 0x52fccb
jmp 0x52f502
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebp
push esi
call fcn.00535920
add esp, 0x10
test eax, eax
je 0x52fccb
jmp 0x52f502
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x38
ret
mov eax, dword [esi + 0x14]
push ebx
call eax
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x5c]
push esi
call fcn.005322e0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push dword [esp + 0x1c]
push esi
call fcn.00532800
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 7
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x38
ret
cmp byte [esp + 0x64], 0
je 0x52fd4b
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x38
ret
mov dword [edx], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x52fd6d
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0xa
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x52fd82
cmp dword [esi + 0x50], 0
je 0x52fd82
push edi
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
mov eax, dword [esp + 0x50]
test eax, eax
je 0x52fea9
cmp dword [esi + 0x134], eax
jne 0x52fdc5
mov eax, dword [esp + 0x60]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
cmp byte [esp + 0x64], 0
jne 0x52fd37
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x52fea9
cmp dword [esi + 0x134], eax
je 0x52fd37
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x54]
pop edi
pop esi
mov dword [ebx], eax
mov eax, 4
pop ebp
pop ebx
add esp, 0x38
ret
cmp byte [esp + 0x64], 0
jne 0x52fd37
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x38
ret
cmp byte [esp + 0x64], 0
jne 0x52fd37
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0x11
pop ebx
add esp, 0x38
ret
cmp byte [esp + 0x64], 0
jne 0x52fd37
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x52fe8a
cmp byte [ebp + 0x45], 0
je 0x52fe55
mov ecx, dword [esp + 0x58]
test cl, 1
jne 0x52fe55
mov eax, edi
sub eax, ecx
sar eax, 1
push eax
push ecx
push dword [esi + 4]
call edx
add esp, 0xc
jmp 0x52fe9f
push dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push edi
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0x3c]
push ebp
call eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x3c]
push ecx
push dword [esi + 4]
call eax
add esp, 0x20
jmp 0x52fe9f
cmp dword [esi + 0x50], 0
je 0x52fe9f
push edi
push dword [esp + 0x5c]
push ebp
push esi
call fcn.005359d0
add esp, 0x10
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x52feb6
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x38
ret
cmp dword [esi + 0x134], eax
je 0x52fd96
mov dword [ebx], edi
mov eax, 0xd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret