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

Disassembly:
push 0xe8
mov eax, 0x41c1ef
call fcn.0041460a
mov edi, ecx
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp eax, 2
jne 0x4057e4
cmp edx, ebx
jne 0x4057e4
lea eax, [esi + 0x130]
push eax
mov ecx, edi
call fcn.0040465d
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 4
pop eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], vtable.CObjectVector_class_CBuffer_unsigned_char__.0
cmp dword [ebp - 0x20], 3
mov dword [ebp - 4], ebx
jne 0x405867
cmp dword [ebp - 0x1c], ebx
jne 0x405867
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [esi + 0x150]
push eax
push dword [esi + 0x144]
mov ecx, edi
push dword [esi + 0x140]
call fcn.004053cd
cmp eax, ebx
je 0x40583f
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403f9b
mov eax, ebx
jmp 0x405e70
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0x150]
add dword [eax], ecx
mov ecx, dword [esi + 0x144]
adc dword [eax + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
push 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
pop eax
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], 8
mov dword [ebp - 0xb0], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x9c], vtable.CRecordVector_bool_.0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], vtable.CRecordVector_unsigned_int_.0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x20], eax
jne 0x405930
cmp dword [ebp - 0x1c], ebx
jne 0x405930
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [esi + 0x50]
push ecx
lea ecx, [esi + 0x3c]
push ecx
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esi + 0x14]
push ecx
push esi
lea eax, [esi + 0x148]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.0040534e
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0x148]
add dword [eax], ecx
mov ecx, dword [esi + 0x144]
adc dword [eax + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x40598c
cmp dword [esi + 0x44], ebx
mov dword [ebp + 8], ebx
jle 0x40598c
push 1
lea ecx, [esi + 0x50]
call fcn.004010c3
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x10], ecx
call fcn.004022fc
push edx
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040106d
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x54]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040210a
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
lea ecx, [ebp - 0x74]
call fcn.004010c3
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x44]
jl 0x405938
lea ecx, [esi + 0x64]
call fcn.00408d12
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
jne 0x4059ca
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00408d80
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00408d80
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.00408d80
jmp 0x40582c
cmp dword [ebp - 0x20], 5
jne 0x4059d5
cmp dword [ebp - 0x1c], ebx
je 0x4059da
call fcn.00403ac2
mov ecx, dword [edi + 0x18]
call fcn.00403bf4
push eax
lea ecx, [esi + 0x64]
mov dword [ebp + 8], eax
call fcn.00408c17
cmp dword [ebp + 8], ebx
jbe 0x405a26
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xf4]
call fcn.004040ca
push eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.00404d48
push dword [ebp - 0xe4]
mov byte [ebp - 4], 3
call fcn.00408db6
dec dword [ebp - 0x10]
pop ecx
jne 0x4059f9
push ebx
lea ecx, [esi + 0x158]
push 9
call fcn.0040106d
cmp dword [esi + 8], ebx
je 0x405a47
push ebx
push 6
lea ecx, [esi + 0x158]
call fcn.0040106d
cmp dword [ebp + 8], ebx
jbe 0x405a5f
cmp dword [ebp - 0x6c], ebx
je 0x405a5f
push ebx
push 0xa
lea ecx, [esi + 0x158]
call fcn.0040106d
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x60], vtable.CRecordVector_bool_.0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00403d4a
xor ecx, ecx
inc ecx
mov eax, vtable.CRecordVector_bool_.0
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
jmp 0x405d3b
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x2c], ebx
ja case.0x405b0b.22
jb 0x405afc
cmp dword [ebp - 0x30], 0x40000000
ja case.0x405b0b.22
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x405b0b.22
jmp dword [eax*4 + 0x405e7b]
mov byte [ebp - 0xd0], bl
lea eax, [ebp - 0x4c]
push eax
push edi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.004043b8
cmp dword [esi + 0x6c], ebx
mov dword [ebp - 0x14], ebx
jle 0x405b54
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi + 0x18]
add eax, 0x10
push eax
call fcn.00404401
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jl 0x405b34
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00404366
push dword [ebp - 0x2c]
lea ecx, [esi + 0x158]
push dword [ebp - 0x30]
call fcn.0040106d
jmp 0x405d0f
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xe8], vtable.CRecordVector_bool_.0
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0xe8]
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00403df9
mov byte [ebp - 0xc8], bl
lea eax, [ebp - 0x4c]
push eax
push edi
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
call fcn.004043b8
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], ebx
jbe 0x405c0c
mov ecx, ebx
mov eax, dword [esi + 0x70]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0xdc]
mov al, byte [eax + ecx]
mov dword [ebp - 0x1c], edx
mov byte [edx + 0x1f], al
cmp al, bl
je 0x405c03
mov ecx, dword [edi + 0x18]
call fcn.00403c0a
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp + 8]
jb 0x405bd9
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 9
call fcn.00404366
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.00408d80
jmp 0x405b63
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00403da2
xor eax, eax
cmp dword [ebp - 0x58], ebx
jbe 0x405c55
mov ecx, dword [ebp - 0x54]
cmp byte [ecx + eax], bl
je 0x405c4f
inc dword [ebp - 0x18]
inc eax
cmp eax, dword [ebp - 0x58]
jb 0x405c44
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403d4a
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403d4a
jmp 0x405b63
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00403da2
jmp 0x405b63
lea eax, [ebp - 0x88]
jmp 0x405c7e
lea eax, [esi + 0xf0]
push dword [ebp + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00404cd0
jmp 0x405b63
lea eax, [esi + 0x78]
jmp 0x405c9c
lea eax, [esi + 0xa0]
jmp 0x405c9c
lea eax, [esi + 0xc8]
jmp 0x405c9c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x24], ebx
jb 0x405d0f
ja 0x405cd7
cmp dword [ebp - 0x28], ebx
jbe 0x405d0f
mov ecx, dword [edi + 0x18]
call fcn.00403ae2
test al, al
jne 0x4059d5
add dword [ebp - 0x38], 1
adc dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jb 0x405cd7
ja 0x405d0f
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x28]
jb 0x405cd7
jmp 0x405d0f
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x28]
call fcn.00403d35
cmp byte [esi + 0x130], bl
ja 0x405d20
cmp byte [esi + 0x131], 2
jbe 0x405d3b
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jne 0x4059d5
cmp ebx, dword [ebp - 0x24]
jne 0x4059d5
mov ecx, dword [edi + 0x18]
call fcn.00403b5f
mov dword [ebp - 0x30], eax
or eax, edx
mov dword [ebp - 0x2c], edx
jne 0x405acd
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x405d71
mov ecx, dword [ebp - 0x7c]
cmp byte [ecx + eax], bl
je 0x405d6b
inc dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x405d60
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], ebx
jbe 0x405e0f
mov edx, dword [ebp - 0x54]
cmp byte [edx + ecx], bl
mov eax, dword [esi + 0x70]
mov eax, dword [eax + ecx*4]
sete cl
mov byte [eax + 0x1c], cl
cmp cl, bl
je 0x405dc5
mov byte [eax + 0x1d], bl
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + edi*8 + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + edi*4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x90]
mov cl, byte [ecx + edi]
mov byte [ebp - 0x18], bl
mov byte [eax + 0x1e], cl
inc edi
jmp 0x405dec
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x1c]
cmp byte [edx + ecx], bl
sete dl
mov byte [eax + 0x1d], dl
mov edx, dword [ebp - 0x7c]
mov dl, byte [edx + ecx]
inc ecx
mov byte [ebp - 0x18], dl
mov dword [ebp - 0x1c], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [eax + 0x1e], bl
cmp dword [ebp - 0x10], ebx
je 0x405dff
push dword [ebp - 0x18]
lea ecx, [esi + 0x118]
call fcn.0040210a
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp + 8]
jb 0x405d7f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00408d80
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.00408d80
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00408d80
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00408d80
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00408d80
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.00408d80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403f9b
xor eax, eax
call fcn.004146e2
ret 4