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

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x9c
mov esi, dword [eax + 0x18]
mov byte [eax + 0xa9], 1
mov eax, 0x98be76
mov dword [esp + 0x2c], edx
or esi, 0xffffffbf
cmp edx, 1
mov edx, 0x98be84
mov dword [esp + 0x38], ecx
cmove eax, edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x5c], 0x990ad1
mov dword [esp + 0x84], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 0x68], 0x98d944
mov dword [esp + 0x6c], 0x990ad8
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.005ea931
mov edi, dword [esp + 0x80]
and dword [ebx + 0x18], esi
test edi, edi
jne 0x5d35f9
mov edx, dword [ebx + 0x10]
shl ebp, 4
mov dword [esp + 0x34], ebp
lea esi, [edx + ebp]
mov eax, dword [esi + 4]
test eax, eax
je 0x5d3869
cmp byte [eax + 9], 0
je 0x5d352b
call fcn.0054b231
mov eax, dword [esi + 4]
test eax, eax
je 0x5d3535
cmp byte [eax + 8], 0
jne 0x5d37d1
xor ecx, ecx
xor edx, edx
call fcn.0059f741
mov ebp, eax
test eax, eax
jne 0x5d35d1
mov dword [esp + 0x3c], 1
mov eax, dword [esi + 4]
xor ebp, ebp
lea ecx, [esp + ebp*4 + 0x48]
add ebp, 1
mov edx, ebp
call fcn.0055ccc1
cmp ebp, 5
je 0x5d3571
mov eax, dword [esi + 4]
jmp 0x5d3555
test byte [ebx + 0x23], 2
jne 0x5d3631
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
test edx, edx
je 0x5d3662
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5d37f9
movzx ebp, byte [ebx + 0x50]
and edx, 3
mov ecx, ebp
cmp edx, ebp
je 0x5d3666
mov eax, dword [esp + 0x38]
mov ecx, 0x990b20
mov edx, ebx
mov edi, 1
call fcn.00555881
jmp 0x5d377e
call fcn.0054ed61
mov edx, ebx
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.00555881
mov eax, dword [esi + 4]
cmp byte [eax + 9], 0
jne 0x5d38b9
mov edi, ebp
lea esi, [esi]
cmp edi, 7
je 0x5d3859
cmp edi, 0xc0a
je 0x5d3859
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.0056cab1
mov byte [ebx + 0xa9], 0
add esp, 0x9c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
movzx ecx, byte [ebx + 0x50]
mov ebp, dword [eax + 0x50]
mov byte [eax + 0x4d], cl
test ebp, ebp
jne 0x5d369c
mov edx, dword [esp + 0x50]
test edx, edx
jns 0x5d3839
mov ecx, edx
neg ecx
cmp edx, 0x80000000
mov edx, 0x7fffffff
cmovne edx, ecx
mov dword [eax + 0x50], edx
mov eax, dword [esi + 4]
call fcn.0054b551
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x4c]
mov byte [eax + 0x4c], dl
test dl, dl
jne 0x5d37b1
mov byte [eax + 0x4c], 1
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x5d36c0
cmp edx, 3
jg 0x5d3849
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx]
mov dword [esp + 4], 0x990b7c
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00566851
mov edx, dword [ebx + 0x158]
mov dword [esp + 0x10], 0
mov ebp, eax
lea eax, [esp + 0x74]
mov dword [esp + 8], 0x5d63b0
mov dword [ebx + 0x158], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 0x30], edx
call fcn.005d2e71
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [ebx + 0x158], edx
test eax, eax
je 0x5d37e1
test ebp, ebp
je 0x5d3761
mov edx, ebp
mov eax, ebx
mov dword [esp + 0x30], ecx
call fcn.00547821
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5d3889
cmp byte [ebx + 0x53], 0
je 0x5d3879
mov eax, ebx
mov edi, 7
call fcn.0056caf1
mov esi, dword [esp + 0x34]
add esi, dword [ebx + 0x10]
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
test edx, edx
je 0x5d3791
call fcn.005a7f61
mov eax, dword [esi + 4]
cmp byte [eax + 9], 0
je 0x5d37a1
sub dword [eax + 0xc], 1
je 0x5d38c9
test edi, edi
je 0x5d3619
jmp 0x5d35f9
cmp dl, 4
jbe 0x5d36af
mov eax, dword [esp + 0x38]
mov ecx, 0x990b64
mov edx, ebx
mov edi, 1
call fcn.00555881
jmp 0x5d377e
mov dword [esp + 0x3c], 0
jmp 0x5d3553
mov ecx, dword [esp + 0x80]
test ebp, ebp
jne 0x5d3748
jmp 0x5d3759
test byte [ebx + 0x18], 0x40
jne 0x5d359c
and edx, 3
mov eax, 1
mov ecx, 0x99ee7c
mov dword [esp], 0
cmove edx, eax
mov eax, ebx
mov byte [ebx + 0x50], dl
movzx edx, dl
call fcn.0055bff1
movzx ecx, byte [ebx + 0x50]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
jmp 0x5d3666
mov ecx, 0xfffff830
cmove edx, ecx
jmp 0x5d368e
and dword [ebx + 0x20], 0xfffffffd
jmp 0x5d36c0
mov dword [esp], ebx
call fcn.00554c41
jmp 0x5d360e
mov eax, dword [edx + 0x1c]
or word [eax + 0x4e], 1
jmp 0x5d3619
test byte [ebx + 0x23], 8
jne 0x5d389e
mov edi, ecx
jmp 0x5d377e
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.005d3311
cmp byte [ebx + 0x53], 0
jne 0x5d376b
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + edx + 0xc]
or word [eax + 0x4e], 1
jmp 0x5d377e
sub dword [eax + 0xc], 1
jne 0x5d35f0
mov edi, ebp
lea esi, [esi]
call fcn.0054b2c1
jmp 0x5d37a1