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

Disassembly:
sub esp, 0x2a4
push ebx
mov ebx, dword [esp + 0x2b0]
push ebp
push esi
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, edx
push edi
cmp eax, edx
je 0x45d7fb
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
add ecx, 4
cmp eax, edx
jne 0x45d7ed
mov eax, dword [ebx + 8]
mov ebp, dword [esp + 0x2c0]
mov dword [esp + 0x34], eax
mov dword [ebx + 8], ecx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x2c4]
add eax, ebp
mov edx, dword [eax + 0x78]
mov esi, dword [eax + 0x7c]
cmp edx, ecx
mov dword [esp + 0x28], edx
lea eax, [esi + edx]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
jae 0x45dd7d
lea edi, [edx + 0x28]
cmp edi, ecx
jae 0x45dd7d
cmp esi, ecx
jae 0x45dd7d
cmp eax, ecx
jae 0x45dd7d
mov edi, dword [edx + ebp + 0x14]
mov ecx, dword [edx + ebp + 0x18]
cmp edi, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ecx
jb 0x45dd7d
test edi, edi
jbe 0x45dd7d
mov eax, dword [edx + ebp + 0x20]
cmp eax, edx
mov dword [esp + 0x1c], eax
jb 0x45dd7d
shl ecx, 2
add ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
jae 0x45dd7d
mov ecx, dword [esp + 0x2c]
shl ecx, 2
cmp ecx, esi
jae 0x45dd7d
mov esi, dword [edx + ebp + 0x24]
cmp esi, edx
jb 0x45dd7d
mov ecx, dword [esp + 0x2c]
lea ecx, [esi + ecx*2]
cmp ecx, eax
jae 0x45dd7d
mov ecx, dword [edx + ebp + 0x1c]
cmp ecx, edx
jb 0x45dd7d
lea edx, [ecx + edi*4]
cmp edx, eax
jae 0x45dd7d
mov edx, dword [esp + 0x18]
lea eax, [edi*4]
cmp eax, edx
jae 0x45dd7d
mov eax, dword [esp + 0x1c]
add ecx, ebp
add eax, ebp
add esi, ebp
test edi, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], 0
jbe 0x45dd7d
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c4]
mov esi, dword [ecx]
push esi
push edx
push ebp
call fcn.0045d6c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45dd5d
push edi
call fcn.0045d720
add esp, 4
cmp al, 1
jne 0x45dd5d
push edi
call fcn.0045d740
add esp, 4
test al, al
jne 0x45dd5d
cmp esi, dword [esp + 0x2c4]
jae 0x45dd5d
cmp esi, dword [esp + 0x28]
jb 0x45d96c
cmp esi, dword [esp + 0x30]
jb 0x45dd5d
cmp esi, dword [esp + 0x2d0]
jae 0x45dd5d
mov ecx, dword [esp + 0x2cc]
lea eax, [esi + ebp]
mov dword [esp + 0x24], eax
xor edi, edi
lea edx, [esi + ecx]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x2c4]
sub eax, ebp
cmp eax, ecx
jae 0x45dd5d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2cc]
sub eax, edx
cmp eax, ecx
jae 0x45dd5d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x45d9d9
inc edi
inc eax
inc edx
cmp edi, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jb 0x45d990
jmp 0x45dd5d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0045d750
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x45dd5d
cmp eax, 0x50
jae 0x45dd5d
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
jbe 0x45da32
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov bp, word [ecx]
cmp ebp, edx
je 0x45da9a
mov ebp, dword [esp + 0x2c]
inc eax
add ecx, 2
cmp eax, ebp
jb 0x45da16
mov ebp, dword [esp + 0x2c0]
mov edx, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c8]
lea eax, [edi + esi]
sub edx, edi
add eax, ecx
sub edx, esi
xor ecx, ecx
cmp edx, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jbe 0x45dac9
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x50], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x48]
mov ecx, dword [ecx + 0xc]
push edx
push eax
lea eax, [esp + 0x54]
push 0x10
push eax
mov dword [esp + 0x68], ecx
call fcn.00430f00
add esp, 0x10
cmp al, 1
jne 0x45dac5
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x60], ecx
jmp 0x45dac9
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + eax*4]
cmp eax, ecx
jb 0x45da2b
cmp eax, dword [esp + 0x30]
jae 0x45da2b
mov ebp, dword [esp + 0x2c0]
add eax, ebp
mov dword [esp + 0x14], eax
jmp 0x45da32
mov ecx, dword [esp + 0x60]
test ecx, ecx
mov word [esp + 0x64], 0
je 0x45dafd
push ecx
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.0045c410
add esp, 8
test eax, eax
je 0x45dafd
push 0x104
lea edx, [esp + 0x68]
push eax
push edx
call dword [0x4b261c]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x26c], 0
test eax, eax
je 0x45db2b
push 0x40
push eax
lea eax, [esp + 0x274]
push eax
call dword [0x4b2604]
add esp, 0xc
mov byte [esp + 0x2ab], 0
jmp 0x45db50
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x26c]
mov edx, dword [ecx + ebp + 0x10]
add edx, edi
push edx
push 0x4ef6a4
push eax
call dword [0x4b2600]
add esp, 0xc
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x2ac], ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x14], edx
mov edi, esi
jae 0x45dc65
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45db8c
mov eax, esi
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x45db91
mov eax, 1
test ecx, ecx
jne 0x45db99
xor esi, esi
jmp 0x45db9e
sub esi, ecx
sar esi, 2
add eax, esi
test eax, eax
mov dword [esp + 0x44], eax
jge 0x45dbaa
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.004a6d08
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, edi
mov dword [esp + 0x18], eax
mov ebp, eax
je 0x45dbdb
push esi
push ebp
call fcn.0045e010
add esi, 4
add esp, 8
add ebp, 4
cmp esi, edi
jne 0x45dbc7
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.0045e010
mov eax, dword [esp + 0x2c4]
add esp, 8
mov esi, edi
mov ebx, dword [eax + 8]
cmp edi, ebx
je 0x45dc10
lea edi, [ebp + 4]
push esi
push edi
call fcn.0045e010
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x45dbfc
mov esi, dword [esp + 0x2bc]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x44], eax
call fcn.004a6c66
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
add esp, 4
lea eax, [ecx + edx*4]
mov edx, dword [esi + 4]
test edx, edx
mov dword [esi + 0xc], eax
jne 0x45dc40
xor eax, eax
jmp 0x45dc48
mov eax, dword [esi + 8]
sub eax, edx
sar eax, 2
mov ebp, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2bc]
lea edx, [ecx + eax*4 + 4]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
jmp 0x45dd23
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x45dcdf
cmp edi, esi
mov eax, edi
je 0x45dc8a
lea ebp, [eax + 4]
push eax
push ebp
call fcn.0045e010
mov eax, ebp
add esp, 8
cmp eax, esi
jne 0x45dc77
mov ecx, dword [ebx + 8]
mov eax, 1
mov edx, ecx
mov esi, ecx
sub edx, edi
sar edx, 2
sub eax, edx
je 0x45dcb5
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0045e010
add esp, 8
add esi, 4
dec ebp
jne 0x45dca1
mov ecx, dword [ebx + 8]
mov eax, edi
cmp edi, ecx
je 0x45dccb
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x45dcbe
mov ebx, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
add dword [ebx + 8], 4
jmp 0x45dd23
lea eax, [esi - 4]
push esi
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.0045dfe0
mov ecx, dword [ebx + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x45dd09
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x45dcfa
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x45dd1f
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x45dd12
add dword [ebx + 8], 4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push 1
mov ecx, dword [eax + ebp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2e4]
push edx
push eax
mov eax, dword [esp + 0x2e8]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
call dword [esp + 0x2f0]
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jb 0x45d90b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a4
ret