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

Disassembly:
mov eax, 0xc8
call fcn.0051bbd0
mov eax, dword [0x5a49f0]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x78], eax
xor ebx, ebx
mov eax, dword [esp + 0x104]
mov ebp, dword [esp + 0xf0]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0xe4]
mov eax, esi
shr eax, 3
mov dword [esp + 0x64], eax
mov eax, 2
mov dword [esp + 0x30], eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x54], ecx
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], ebx
call fcn.004b51c0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x5096e5
cmp esi, 0xa0
jne 0x5096cd
call fcn.004be170
jmp 0x5096e1
cmp esi, 0xe0
jne 0x5096dc
call fcn.004be180
jmp 0x5096e1
call fcn.004be190
mov dword [esp + 0x1c], eax
push eax
call fcn.004b8530
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
cmp dword [eax + 0xc], ebx
je 0x50970b
cmp dword [eax + 0x10], ebx
je 0x50970b
cmp dword [esp + 0xf4], ebx
jl 0x50976b
test ebp, ebp
push 0x1be
cmove ebp, esi
push 0x5844d8
push ebp
mov dword [esp + 0x24], ebp
call fcn.004a2cd0
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x509744
push 0x1c3
push 0x5844d8
push ebp
call fcn.004a2cd0
add esp, 0xc
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x509bd4
test eax, eax
je 0x509bc7
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x50976b
push ebp
push eax
push ebx
call fcn.0051e2e0
add esp, 0xc
call fcn.004bb4a0
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x509bc7
call fcn.004e6a50
mov dword [esp + 0x40], eax
test eax, eax
je 0x509bc7
push ebp
call fcn.004bb520
push ebp
call fcn.004bb440
push dword [esp + 0x18]
mov ebp, eax
call fcn.004bb440
push dword [esp + 0x1c]
mov dword [esp + 0x64], eax
call fcn.004bb440
push dword [esp + 0x20]
mov dword [esp + 0x5c], eax
call fcn.004bb440
push dword [esp + 0x24]
mov dword [esp + 0x88], eax
call fcn.004bb440
push dword [esp + 0x28]
mov dword [esp + 0x7c], eax
call fcn.004bb440
mov ecx, dword [esp + 0x6c]
add esp, 0x1c
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
test eax, eax
je 0x509821
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
je 0x509821
cmp dword [esp + 0xf4], edi
jl 0x509c56
push dword [esp + 0x18]
push ebx
push dword [esp + 0x3c]
call fcn.0051e2e0
add esp, 0xc
jmp 0x509c56
mov esi, dword [esp + 0x10]
push esi
call fcn.004bb440
push esi
mov dword [esp + 0x28], eax
call fcn.004bb440
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [esp + 0xe0]
dec eax
mov dword [esp + 0x6c], eax
push eax
call fcn.004a5680
push eax
push dword [esp + 0x1c]
call fcn.004db350
add esp, 0xc
test eax, eax
je 0x509bc7
mov esi, dword [esp + 0x3c]
nop word [eax + eax]
mov edi, dword [esp + 0x64]
push dword [esp + 0x44]
push 0
push dword [esp + 0x2c]
call fcn.00506e70
inc dword [esp + 0x50]
add esp, 0xc
test eax, eax
je 0x509bc7
test esi, esi
jne 0x5098ab
push dword [esp + 0x18]
push ebx
call fcn.004ac3d0
add esp, 8
test eax, eax
jle 0x509bc7
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x9c]
push 0
push eax
push dword [esp + 0x28]
push ebx
call fcn.004b4c30
add esp, 0x18
test eax, eax
je 0x509bc7
mov ecx, dword [esp + 0x2c]
lea esi, [esp + 0x94]
cmp ecx, edi
jle 0x5098e7
mov eax, ecx
sub eax, edi
add esi, eax
cmp ecx, edi
jge 0x509902
mov eax, edi
sub eax, ecx
push eax
lea eax, [esp + 0x98]
add eax, ecx
push 0
push eax
call fcn.0051e180
add esp, 0xc
push dword [esp + 0x28]
or byte [esi], 0x80
or byte [esi + edi - 1], 1
push edi
push esi
call fcn.004a4cb0
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x24]
mov esi, dword [esp + 0x40]
xor eax, eax
test esi, esi
setne al
push eax
push dword [esp + 0x18]
push 0x32
push dword [esp + 0x38]
call fcn.00507140
add esp, 0x14
test eax, eax
jg 0x509965
jne 0x509bc7
test esi, esi
je 0x509874
push 0x210
push 0x5844d8
push 0x71
jmp 0x509bb3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x50997b
push dword [esp + 0x18]
push ebx
push eax
call fcn.0051e2e0
add esp, 0xc
mov esi, dword [esp + 0x24]
push 0
push 2
push esi
call fcn.00506e70
add esp, 0xc
test eax, eax
je 0x509bc7
push 0
push 3
push esi
call fcn.00506e70
add esp, 0xc
test eax, eax
je 0x509bc7
mov ecx, dword [esp + 0x2c]
xor edi, edi
mov eax, dword [esp + 0xe0]
xor edx, edx
shl ecx, 3
dec eax
div ecx
mov dword [esp + 0x4c], edi
mov esi, eax
mov dword [esp + 0x5c], esi
test edi, edi
je 0x5099e3
push edi
push 0
push dword [esp + 0x2c]
call fcn.00506e70
add esp, 0xc
test eax, eax
je 0x509bc7
push 0
push dword [esp + 0x4c]
call fcn.004a55d0
add esp, 8
xor edi, edi
test esi, esi
js 0x509aa8
mov ecx, dword [esp + 0x18]
xor esi, esi
lea eax, [ecx - 1]
mov dword [esp + 0x68], eax
test eax, eax
js 0x509a1b
nop dword [eax]
add byte [eax + ebx], 1
jne 0x509a1b
sub eax, 1
jns 0x509a10
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x9c]
push 0
push eax
push ecx
push ebx
call fcn.004b4c30
add esp, 0x18
test eax, eax
je 0x509bc7
push ebp
push dword [esp + 0x30]
lea eax, [esp + 0x9c]
push eax
call fcn.004a4cb0
add esp, 0xc
test eax, eax
je 0x509bc7
push esi
push ebp
push ebp
call fcn.004db350
add esp, 0xc
test eax, eax
je 0x509bc7
mov eax, dword [esp + 0x48]
push ebp
push eax
push eax
call fcn.004cdcd0
add esp, 0xc
test eax, eax
je 0x509bc7
mov ecx, dword [esp + 0x2c]
inc edi
lea eax, [ecx*8]
mov ecx, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x68]
cmp edi, dword [esp + 0x5c]
jle 0x509a08
mov esi, dword [esp + 0x5c]
push dword [esp + 0x6c]
mov edi, dword [esp + 0x4c]
push edi
call fcn.004a5360
add esp, 8
test eax, eax
je 0x509bc7
push edi
mov edi, dword [esp + 0x74]
push edi
call fcn.004a51b0
add esp, 8
test eax, eax
je 0x509bc7
push dword [esp + 0x14]
push edi
push edi
call fcn.004cdcd0
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x28]
push ebp
call fcn.004db4d0
add esp, 8
test eax, eax
je 0x509bc7
push dword [esp + 0x10]
push ebp
push edi
push dword [esp + 0x6c]
push 0
call fcn.004f91b0
add esp, 0x14
test eax, eax
je 0x509bc7
call fcn.004a5680
push eax
push dword [esp + 0x64]
push ebp
call fcn.004cdd60
add esp, 0xc
test eax, eax
je 0x509bc7
push ebp
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.004cdd60
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x14]
push edi
call fcn.004a4e60
add esp, 8
test eax, eax
js 0x509b80
mov edi, dword [esp + 0x24]
push edi
push 1
push dword [esp + 0x18]
push 0x32
push dword [esp + 0x30]
call fcn.00507140
add esp, 0x14
test eax, eax
jg 0x509c39
jne 0x509bc7
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0xe0]
inc edi
shl eax, 2
mov dword [esp + 0x4c], edi
cmp edi, eax
jl 0x5099c8
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x509870
push 0x269
push 0x5844d8
push 0x70
push 0x7e
push 0xa
mov dword [esp + 0x4c], 0
call fcn.004af070
add esp, 0x14
test ebx, ebx
je 0x509bd4
push ebx
call fcn.004a2c50
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x58], eax
je 0x509be7
push eax
call fcn.004a2c50
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x509bfe
push ebx
call fcn.004bb3d0
push ebx
call fcn.004bb410
add esp, 8
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x509c13
push eax
call fcn.004e6a10
add esp, 4
lea eax, [esp + 0x6c]
push eax
call fcn.004b4f60
mov ecx, dword [esp + 0xc8]
add esp, 4
mov eax, dword [esp + 0x28]
xor ecx, esp
call fcn.0051b03f
add esp, 0xc8
ret
push 1
push 2
push edi
call fcn.00506e70
add esp, 0xc
test eax, eax
je 0x509bc7
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
call fcn.004a5680
push eax
push dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.004cdd60
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x10]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push 0
push ebp
call fcn.004f91b0
add esp, 0x14
test eax, eax
je 0x509bc7
cmp dword [esp + 0xf4], 0
jge 0x509cb5
push 2
push dword [esp + 0x18]
call fcn.004a55d0
add esp, 8
test eax, eax
je 0x509bc7
jmp 0x509cbe
mov eax, 1
mov dword [esp + 0x30], eax
push dword [esp + 0x10]
push dword [esp + 0x24]
push dword [esp + 0x48]
call fcn.004e6ab0
add esp, 0xc
test eax, eax
je 0x509bc7
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x30]
test eax, eax
js 0x509dc5
mov byte [esp + 0x94], al
mov eax, ecx
shr eax, 8
push 0
push dword [esp + 0x20]
mov byte [esp + 0x9d], al
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0xa2], cl
call fcn.004b4da0
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x18]
lea eax, [esp + 0x80]
push dword [esp + 0x38]
push eax
call fcn.004b4f50
add esp, 0xc
test eax, eax
je 0x509bc7
push 4
lea eax, [esp + 0x80]
push str.ggen.cryptodsadsa_gen.c
push eax
call fcn.004b4f50
add esp, 0xc
test eax, eax
je 0x509bc7
push 3
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004b4f50
add esp, 0xc
test eax, eax
je 0x509bc7
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004b4d00
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x14]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.004a4cb0
add esp, 0xc
test eax, eax
je 0x509bc7
push dword [esp + 0x40]
push dword [esp + 0x14]
push dword [esp + 0x28]
push ebp
push dword [esp + 0x24]
push dword [esp + 0x68]
call fcn.004e5440
add esp, 0x18
test eax, eax
je 0x509bc7
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 4], 1
jne 0x509e4d
mov eax, dword [ecx]
cmp dword [eax], 1
jne 0x509e4d
cmp dword [ecx + 0xc], 0
jne 0x509e4d
mov eax, dword [esp + 0xf4]
test eax, eax
jns 0x509e2f
call fcn.004a5680
push eax
mov eax, dword [esp + 0x18]
push eax
push eax
call fcn.004cdcd0
add esp, 0xc
test eax, eax
je 0x509bc7
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
test eax, eax
js 0x509dc5
cmp ecx, 0xffff
jbe 0x509ce5
jmp 0x509bc7
push 1
push 3
push dword [esp + 0x2c]
call fcn.00506e70
add esp, 0xc
test eax, eax
je 0x509bc7
mov dword [esp + 0x38], 1
nop dword [eax]
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
cmp ebp, eax
je 0x509e98
test eax, eax
je 0x509e8c
push eax
call fcn.004a52c0
add esp, 4
push ebp
call fcn.004a5280
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
mov ebp, dword [esp + 0x28]
cmp ebp, eax
je 0x509ebc
test eax, eax
je 0x509eb0
push eax
call fcn.004a52c0
add esp, 4
push ebp
call fcn.004a5280
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x509ecc
push eax
call fcn.004a52c0
add esp, 4
push dword [esp + 0x54]
call fcn.004a5280
add esp, 4
mov dword [esi + 0x14], eax
cmp dword [esi + 0xc], 0
je 0x509f0c
cmp dword [esi + 0x10], 0
je 0x509f0c
test eax, eax
je 0x509f0c
mov eax, dword [esp + 0x74]
test eax, eax
je 0x509ef5
mov dword [eax], edi
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x509bc7
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
jmp 0x509bc7
mov dword [esp + 0x38], 0xffffffff
jmp 0x509bc7