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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5986d6
sub esp, 0x5c
lea eax, [0x633cc0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
lea ebx, [edx + ecx]
mov dword [esp + 0x30], ebx
mov dword [esp + 8], ebx
call fcn.00442930
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x84]
cmp ecx, edx
jb 0x59864b
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp], eax
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0045b690
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
ja 0x598615
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x84]
add eax, edx
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.0045b690
lea eax, [0x633cc0]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
shl eax, 1
mov edx, dword [esp + 0x90]
lea eax, [eax + edx*2]
mov ebx, dword [esp + 0x94]
lea eax, [eax + ebx*2]
mov dword [esp + 0x38], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00442930
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
movzx ecx, word [esp + 0x60]
mov word [esp], cx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.00598070
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [str.key_expansion]
mov ebp, dword [0x815ec4]
mov esi, dword [0x815ec8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x2c], ebx
mov ebx, dword [edx]
call ebx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x38]
cmp ecx, edx
ja 0x5986d0
mov ebx, edx
sub edx, ecx
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, ecx
mov esi, dword [esp + 0x58]
lea edi, [edx + esi]
cmp ecx, ebp
ja 0x5986c9
ja 0x5986c0
mov dword [esp + 0x44], ebp
mov edx, ebp
sub edx, ecx
mov eax, edx
neg edx
sar edx, 0x1f
and edx, ecx
lea ebp, [edi + edx]
mov edx, edi
mov edi, dword [esp + 0x90]
cmp edi, eax
ja 0x5986b7
ja 0x5986ae
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebp
sub eax, edi
mov dword [esp + 0x34], eax
neg eax
sar eax, 0x1f
and eax, edi
add ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0x34]
cmp edi, ebx
ja 0x5986a5
ja 0x59869c
mov dword [esp + 0x54], ebp
sub ebx, edi
mov dword [esp + 0x3c], ebx
neg ebx
sar ebx, 0x1f
and ebx, edi
add ebx, ebp
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x3c]
cmp ebp, edi
ja 0x598693
ja 0x59868a
sub edi, ebp
mov dword [esp + 0x38], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ebp
add edi, ebx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x38]
cmp ebp, edi
ja 0x598681
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], edi
add esp, 0x5c
ret
lea edx, [0x633cc0]
mov dword [esp], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004429e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
jmp 0x5983af
lea ebx, [0x633cc0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.004429e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
jmp 0x59837c
mov ecx, ebp
mov edx, edi
call fcn.0045ada0
mov eax, ebp
mov ecx, edi
call fcn.0045adc0
mov ecx, ebp
mov edx, edi
call fcn.0045ada0
mov eax, edi
mov ecx, ebx
call fcn.0045adc0
mov ecx, edi
mov edx, ebx
call fcn.0045ada0
mov ecx, eax
mov eax, edi
call fcn.0045adc0
mov ecx, edi
mov edx, eax
call fcn.0045ada0
mov eax, ecx
mov ecx, ebp
call fcn.0045adc0
mov edx, ebp
call fcn.0045ada0
call fcn.0045ada0
nop
call fcn.00459790
jmp fcn.00598320