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

Disassembly:
mov eax, 0x9a20
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x9a1c], eax
mov eax, dword [esp + 0x9a2c]
mov edx, dword [esp + 0x9a40]
mov ecx, dword [esp + 0x9a3c]
push ebx
mov ebx, dword [esp + 0x9a3c]
push ebp
mov ebp, dword [esp + 0x9a2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9a50]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x47]
mov dword [esp + 0x6c], eax
mov al, byte [edx + 0x24]
and al, 0x80
push esi
mov esi, dword [esp + 0x9a40]
mov byte [esp + 0x2f], al
movzx eax, word [ecx]
push edi
xor edi, edi
cmp byte [ebp + 0xc6], 0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ecx
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
jne 0x59da3d
push 0x7fa0
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x59da80
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x80]
call fcn.00458e30
push ebx
push esi
push 0x426
push 6
call fcn.00406f10
add esp, 0x14
jmp 0x59dfb3
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
lea ebx, [esp + 0x48]
lea esp, [esp]
mov edx, dword [ebp + 0xc7]
mov eax, dword [edx + 0x11]
push eax
push ebx
call fcn.0050cd30
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x59e0f3
mov eax, dword [esp + 0x1c]
inc eax
add ebx, 4
xor edi, edi
cmp eax, 3
mov dword [esp + 0x1c], eax
jl 0x59da50
movsx eax, word [esp + 0x5c]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], eax
jle 0x59df1e
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x88c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x44], ecx
jmp 0x59dab5
mov ecx, dword [esp + 0x44]
cmp byte [esp + 0x12], 0
je 0x59df1e
movzx eax, word [ecx - 2]
movzx edx, word [ecx]
mov esi, dword [esp + 0x9a40]
and esi, reloc.TBCRYPT32.dll_Ordinal_1
mov dword [esp + 0x20], edx
movsx edi, ax
jns 0x59dae2
dec esi
or esi, 0xfffffffe
inc esi
mov eax, dword [esp + 0x9a54]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
neg esi
push edi
sbb esi, esi
and esi, dword [esp + 0x9a3c]
push esi
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push ebp
call fcn.004569c0
mov dword [esp + 0x70], eax
xor eax, eax
add esp, 0x1c
cmp dword [esp + 0x9a40], 1
setle al
dec eax
and eax, dword [esp + 0x9a38]
cmp edi, eax
jge 0x59db36
mov ecx, dword [esp + 0x40]
movsx ebp, word [ecx + edi*2]
jmp 0x59db42
mov ecx, dword [esp + 0x28]
mov edx, edi
sub edx, eax
movsx ebp, word [ecx + edx*2]
lea ecx, [edi + 1]
cmp ecx, eax
jge 0x59db54
mov edx, dword [esp + 0x40]
movsx ecx, word [edx + edi*2 + 2]
jmp 0x59db61
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
movsx ecx, word [edx + ecx*2 + 2]
movzx ebp, bp
movsx ebp, bp
cmp ebp, ecx
jne 0x59db6f
xor ebp, ebp
jmp 0x59db78
lea ecx, [eax + eax]
sub ebp, ecx
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 1]
cmp ecx, esi
mov dword [esp + 0x58], ebp
mov dword [esp + edx*4 + 0x84], ebp
jge 0x59db9f
mov edx, dword [esp + 0x40]
movsx ecx, word [edx + edi*2 + 2]
movsx esi, word [edx + edi*2]
sub ecx, esi
jmp 0x59dbd6
cmp edi, esi
jge 0x59dbb1
mov edx, dword [esp + 0x40]
movsx ecx, word [edx + edi*2]
mov dword [esp + 0x24], ecx
jmp 0x59dbc5
mov ecx, dword [esp + 0x38]
mov edx, edi
sub edx, esi
movsx edx, word [ecx + edx*2]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x40]
mov ecx, edi
sub ecx, esi
mov esi, dword [esp + 0x38]
movsx ecx, word [esi + ecx*2 + 2]
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
lea ecx, [edi + 1]
cmp ecx, eax
jge 0x59dbee
movsx esi, word [edx + edi*2 + 2]
movsx edx, word [edx + edi*2]
sub esi, edx
jmp 0x59dc11
cmp edi, eax
jge 0x59dbf8
movsx ecx, word [edx + edi*2]
jmp 0x59dc04
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
movsx ecx, word [edx + ecx*2]
sub edi, eax
mov eax, dword [esp + 0x28]
movsx esi, word [eax + edi*2 + 2]
sub esi, ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
cmp byte [ecx + 0xc6], 0
lea eax, [esp + eax*4 + 0x484]
mov dword [esp + 0x64], esi
mov dword [esp + 0x24], eax
mov dword [eax], esi
je 0x59dceb
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], edx
xor ebp, ebp
jmp 0x59dc50
movsx esi, word [esp + 0x2c]
mov eax, dword [esp + ebp + 0x54]
lea esi, [esp + esi + 0x1a8c]
test eax, eax
je 0x59dcbe
mov edi, dword [esp + ebp + 0x60]
push edi
push eax
push esi
call sub.MSVCR90.dll_memcpy
mov ax, di
inc ax
add word [esp + 0x38], ax
mov byte [edi + esi], 0
mov ecx, dword [0x5b46ac]
mov eax, dword [ecx + 0x332]
add esp, 0xc
mov dword [esp + ebp + 0x54], esi
cmp eax, 8
je 0x59dcad
test eax, eax
je 0x59dcbe
mov edx, dword [esp + 0x2c]
add edx, 3
and edx, 0xfffffffc
movzx eax, dx
mov dword [esp + 0x2c], eax
jmp 0x59dcbe
mov ecx, dword [esp + 0x2c]
add ecx, 7
and ecx, 0xfffffff8
movzx edx, cx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + ebp + 0x54]
mov dx, word [esp + 0x20]
mov dword [eax - 4], ecx
mov word [eax], dx
add ebp, 4
add eax, 0x904
cmp ebp, 8
mov dword [esp + 0x24], eax
jl 0x59dc50
jmp 0x59defd
mov eax, dword [esp + 0x18]
inc dword [esp + 0x3c]
cmp dword [esp + 0x54], 0
mov byte [eax], 0
jne 0x59dd70
test ebp, ebp
je 0x59defd
mov eax, dword [esp + 0x20]
mov byte [esp + 0x12], 0
cmp ax, 4
je 0x59dd2a
cmp ax, 0x1d
je 0x59dd2a
cmp ax, 0xc
je 0x59dd2a
cmp ax, 0x1c
jne 0x59defd
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + ecx*4 + 0x84], edx
mov byte [esp + 0x13], 1
cmp ax, 0xc
jne 0x59dd59
lea ecx, [esi - 4]
add edx, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edx
jmp 0x59de8c
movsx ecx, byte [ebp]
neg ecx
sbb ecx, ecx
and ecx, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edx
jmp 0x59de8c
cmp byte [esp + 0x13], 0
jne 0x59de84
movsx eax, word [esp + 0x20]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x54]
push esi
push edx
push eax
push ebp
push eax
push edi
call fcn.00577610
add esp, 0x18
test eax, eax
mov eax, dword [esp + 0x20]
sete byte [esp + 0x12]
cmp ax, 4
je 0x59ddbd
cmp ax, 0x1d
je 0x59ddbd
cmp ax, 0xc
je 0x59ddbd
cmp ax, 0x1c
jne 0x59defd
cmp byte [esp + 0x12], 0
je 0x59ddfc
cmp ax, 0xc
je 0x59defd
movsx ebx, byte [ebp]
neg ebx
sbb ebx, ebx
and ebx, esi
mov dword [esp + 0x34], ebx
dec ebx
test ebx, ebx
jle 0x59ddee
cmp byte [ebx + ebp], 0x20
jne 0x59ddec
dec ebx
test ebx, ebx
jg 0x59dde1
test ebx, ebx
lea eax, [ebx + 1]
jge 0x59def7
jmp 0x59def2
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x84], edx
cmp ax, 0xc
jne 0x59de25
mov eax, dword [edi]
mov ecx, dword [ebp]
add edi, 4
add ebp, 4
mov dword [esp + 0x54], edi
add edx, 4
jmp 0x59de3a
movsx eax, byte [edi]
movsx ecx, byte [ebp]
neg eax
sbb eax, eax
and eax, dword [esp + 0x60]
neg ecx
sbb ecx, ecx
and ecx, esi
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x59dea9
mov edi, dword [esp + 0x54]
sub edi, ebp
mov esi, edx
cmp ebx, eax
jge 0x59de5c
lea edx, [edi + ebx]
mov dl, byte [edx + ebp]
jmp 0x59de5e
mov dl, 0x20
mov cl, byte [ebx + ebp]
mov byte [esi], cl
movzx ecx, cl
movzx edx, dl
inc ebx
inc esi
sub edx, ecx
jne 0x59de7b
cmp ebx, dword [esp + 0x34]
jl 0x59de50
mov dword [esp + 0x14], esi
jmp 0x59dea9
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
cmp ebx, ecx
jge 0x59dea9
mov al, byte [ebx + ebp]
movzx esi, al
sub esi, 0x20
test esi, esi
jg 0x59dea5
mov byte [edx], al
inc ebx
inc edx
cmp ebx, ecx
jl 0x59de90
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov byte [eax], 0
dec eax
sub ebx, 1
mov dword [esp + 0x14], eax
js 0x59ded2
lea ebx, [ebx]
cmp byte [eax], 0x20
jne 0x59dece
dec ebx
mov byte [eax], 0
dec eax
test ebx, ebx
jge 0x59dec0
mov dword [esp + 0x14], eax
cmp word [esp + 0x20], 0xc
lea eax, [ebx + 1]
jne 0x59deee
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
add eax, 4
mov dword [edx], eax
jmp 0x59defd
test eax, eax
jg 0x59def7
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x44], 6
add dword [esp + 0x68], 9
mov ebp, dword [esp + 0x78]
inc eax
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
jl 0x59dab1
cmp byte [ebp + 0xc6], 0
jne 0x59dfff
movsx ebp, word [esp + 0x3c]
mov eax, dword [esp + 0x74]
lea ebx, [eax + ebp*2 + 2]
mov edx, ebx
sub edx, eax
xor esi, esi
mov word [eax], dx
test ebp, ebp
jle 0x59df99
jmp 0x59df50
mov eax, dword [esp + 0x74]
mov cx, word [eax + esi*2]
add cx, word [esp + esi*4 + 0x484]
mov word [eax + esi*2 + 2], cx
mov eax, dword [0x6d3944]
cdq
sub eax, edx
sar eax, 1
movsx ecx, cx
sub eax, 8
cmp ecx, eax
jg 0x59dfcc
mov edi, dword [esp + esi*4 + 0x484]
mov edx, dword [esp + esi*4 + 0x84]
push edi
push edx
push ebx
call sub.MSVCR90.dll_memcpy
inc esi
add esp, 0xc
add ebx, edi
cmp esi, ebp
jl 0x59df50
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x80]
call fcn.00458e30
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x9a2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x9a20
ret
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x80]
call fcn.00458e30
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push 0x426
push 0x138
call fcn.00406f10
add esp, 0x14
jmp 0x59dfb3
mov eax, 0x1e
mov word [esp + 0x6c], ax
xor edi, edi
lea ebx, [esp + 0x884]
mov edx, dword [esp + edi*4 + 0x48]
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push ebp
push 0
push 0
push ebx
push edx
mov dword [ebx], ecx
call fcn.0050ca80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x59e0f3
inc edi
add ebx, 0x904
cmp edi, 2
jl 0x59e012
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00584360
add esp, 8
test eax, eax
jne 0x59e0ab
cmp byte [esp + 0x33], al
jne 0x59e0a1
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x80]
call fcn.00458e30
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push esi
push esi
push eax
push ecx
push edx
push str.mk_sep2
push 0x426
push 0x145
call fcn.00406f10
add esp, 0x24
jmp 0x59dfb3
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
jmp 0x59e0d0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.0050cbc0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x59e0f3
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x74]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x44]
push ecx
push 1
call fcn.005789e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59df99
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x80]
call fcn.00458e30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push 0x426
push 0
call fcn.00406f10
add esp, 0x14
mov eax, esi
jmp 0x59dfb3