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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
xor edx, edx
cmp dword [edi + 0x302c], 1
push ebx
setle dl
push esi
lea esi, [esp + 0x14]
mov ecx, accept
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
sub edx, 1
and edx, esi
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x36b4]
mov dword [esp + 0x68], edx
mov edx, dword [edi + 0x36b8]
mov dword [esp + 0x6c], edx
mov edx, dword [edi + 0x3008]
mov dword [esp + 0x58], edx
mov edx, dword [edi + 0x300c]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x3010]
mov dword [eax + 0x1d8], ecx
cmp dword [edi + 0x302c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], edx
jle 0x590dc9
lea ecx, [eax + 0x1e4]
lea edx, [edi + 0x1ff0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
lea esi, [edi + 0x3038]
mov eax, dword [eax + 0x10]
movzx eax, word [eax + ebx*2]
sub dword [esp + 0x14], eax
mov ecx, dword [esi - 4]
mov edx, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [esp + 0x58], edx
mov edx, dword [ecx + 0x1644]
push 0
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edx
call fcn.00575f20
mov ax, word [esp + 0x80]
mov cx, word [esp + 0x82]
xor edx, edx
add esp, 0x10
cmp ax, dx
mov word [esp + 0x84], ax
mov word [esp + 0x86], cx
mov dword [esp + 0x20], 1
jne 0x590d03
cmp cx, dx
je 0x590d1b
mov word [esp + 0x88], dx
mov word [esp + 0x8a], dx
mov dword [esp + 0x20], 2
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x88]
push eax
push ebx
push edx
push edi
call fcn.00576b40
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.005bbde0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xa0]
add dword [esp + 0x3c], ecx
add eax, ecx
mov ecx, dword [esp + 0x44]
add esp, 0x28
cmp eax, dword [ecx + 0x1d8]
mov dword [esp + 0x78], eax
jge 0x590d8a
mov eax, dword [edi + 0x4d30]
push 0x50
lea edx, [esp + 0x34]
push edx
add ecx, 0x190
push ecx
call eax
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [edi + 0x1ef8]
mov edx, dword [esp + 0x7c]
add dword [esp + 0x18], 4
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
mov dword [eax], ecx
add eax, 0x14
add ebx, 1
add esi, 0x18
cmp ebx, dword [edi + 0x302c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
jl 0x590c70
movzx ecx, byte [eax + 0x19c]
imul ecx, ecx, 0x1010101
mov dword [edi + 0x372c], ecx
mov dword [edi + 0x3734], ecx
mov dword [edi + 0x373c], ecx
mov dword [edi + 0x3744], ecx
mov dword [edi + 0x2114], 4
cmp dword [eax + 0x18], 0
je 0x590eac
mov eax, edi
call fcn.0058f6b0
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x19c], 0
jne 0x590eac
mov edx, dword [ebx + 0x1dc]
cmp edx, dword [edi + 0x3c90]
jne 0x590eac
mov dword [edi + 0x2118], 0x10
mov eax, dword [ebx + 0x1dc]
mov dword [edi + 0x37b0], eax
mov dword [edi + 0x37b4], eax
mov dword [edi + 0x37b8], eax
mov dword [edi + 0x37bc], eax
mov dword [edi + 0x37d0], eax
mov dword [edi + 0x37d4], eax
mov dword [edi + 0x37d8], eax
mov dword [edi + 0x37dc], eax
mov dword [edi + 0x37f0], eax
mov dword [edi + 0x37f4], eax
mov dword [edi + 0x37f8], eax
mov dword [edi + 0x37fc], eax
mov dword [edi + 0x3810], eax
mov dword [edi + 0x3814], eax
mov dword [edi + 0x3818], eax
mov dword [edi + 0x381c], eax
mov esi, dword [ebx + 4]
mov ecx, edi
call fcn.0058d580
mov dword [ebx + 0x184], eax
mov ecx, dword [esp + 0xac]
pop esi
pop ebx
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret