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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor edi, edi
mov al, byte [ebp + 0x17]
xor ebx, ebx
test al, al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
je 0x207e45e6
cmp dword [ebp + 0x48], edi
jne 0x207e45e6
cmp dword [ebp + 0x20], edi
je 0x207e45e6
mov al, byte [ebp + 4]
test al, al
je 0x207e457b
mov dword [esp + 0x14], 1
mov esi, dword [ebp + 0x84]
mov dword [ebp + 0x20], edi
cmp esi, edi
je 0x207e45b3
mov ecx, dword [esi]
mov edi, dword [esi + 0x18]
lea eax, [esi + 0x10]
push esi
add ecx, 0x78
push eax
push ecx
call fcn.207e3660
mov edx, dword [esi + 0x2c]
push edx
call fcn.207e0930
push esi
call fcn.207e0a40
add esp, 0x14
mov esi, edi
test edi, edi
jne 0x207e4588
mov eax, dword [ebp + 0xc8]
mov dword [ebp + 0x88], edi
push eax
mov dword [ebp + 0x84], edi
mov dword [ebp + 0x8c], edi
mov dword [ebp + 0xc4], edi
call fcn.207e0a40
add esp, 4
mov dword [ebp + 0x44], edi
mov dword [ebp + 0xc8], edi
mov dword [ebp + 0x48], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x207e45f6
cmp eax, 0xd
jne 0x207e4a62
mov al, byte [ebp + 0xe]
test al, al
je 0x207e4607
cmp dword [esp + 0x14], edi
je 0x207e4a60
mov cl, byte [ebp + 7]
mov edi, dword [ebp]
test cl, cl
mov dword [esp + 0x1c], edi
jne 0x207e46a2
cmp al, 1
jb 0x207e4621
xor esi, esi
jmp 0x207e465e
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x207e462f
mov dword [eax + 8], 0
mov ecx, dword [ebp + 0x68]
push 1
push ecx
call fcn.207e7af0
mov esi, eax
add esp, 8
cmp esi, 5
jne 0x207e4656
mov edx, dword [ebp + 0x74]
push edx
call fcn.207c8c90
add esp, 4
test eax, eax
jne 0x207e462f
jmp 0x207e465e
test esi, esi
jne 0x207e465e
mov byte [ebp + 0xe], 1
mov ebx, esi
test esi, esi
mov dword [esp + 0x10], ebx
je 0x207e46a2
mov eax, esi
and eax, 0xff
cmp eax, 0xd
je 0x207e467e
cmp eax, 0xa
je 0x207e467e
cmp eax, 0xb
jne 0x207e4698
mov al, byte [ebp + 0xe]
mov dword [ebp + 0x20], esi
test al, al
jne 0x207e4698
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x207e4698
push ebp
call fcn.207e3300
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x207e475d
mov al, byte [ebp + 6]
mov edi, dword [ebp]
xor esi, esi
xor ebx, ebx
test al, al
je 0x207e4741
mov eax, dword [ebp + 0x68]
cmp dword [eax], 0
je 0x207e4741
mov edx, dword [ebp + 0x60]
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
push edi
call fcn.207e7bc0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x207e4741
mov eax, dword [esp + 0x34]
test eax, eax
je 0x207e46fc
mov ecx, dword [ebp + 0x68]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.207e7b30
add esp, 8
mov esi, eax
test esi, esi
jne 0x207e4741
mov eax, dword [esp + 0x34]
test eax, eax
je 0x207e4741
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x207e4741
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.207e31e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x207e4741
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x207e473c
mov eax, dword [ebp + 0x60]
push esi
push eax
push edi
call fcn.207e7ba0
add esp, 0xc
jmp 0x207e4741
mov ebx, 1
test esi, esi
mov dword [esp + 0x10], esi
jne 0x207e4a53
test ebx, ebx
je 0x207e48de
mov edi, dword [esp + 0x1c]
mov ebx, esi
jmp 0x207e475f
xor esi, esi
cmp byte [ebp + 0xe], 4
jae 0x207e47be
mov ecx, dword [ebp + 0x68]
push 4
push ecx
call fcn.207e7af0
mov ebx, eax
add esp, 8
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x207e47ba
and eax, 0xff
cmp eax, 0xd
je 0x207e4795
cmp eax, 0xa
je 0x207e4795
cmp eax, 0xb
jne 0x207e4a4f
mov al, byte [ebp + 0xe]
mov dword [ebp + 0x20], ebx
test al, al
jne 0x207e4a4f
cmp dword [ebp + 0x48], esi
jne 0x207e4a4f
push ebp
call fcn.207e3300
add esp, 4
jmp 0x207e4a4f
mov byte [ebp + 0xe], 4
cmp dword [esp + 0x14], esi
jne 0x207e4834
mov al, byte [ebp + 4]
test al, al
jne 0x207e4834
mov eax, dword [ebp + 0x60]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push edi
call fcn.207e7bc0
mov ebx, eax
add esp, 0x10
cmp ebx, esi
mov dword [esp + 0x10], ebx
jne 0x207e4838
cmp dword [esp + 0x1c], esi
je 0x207e4859
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x60]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
push ecx
push 0x802
push edx
push eax
push edi
call fcn.207e7b80
mov ebx, eax
mov al, byte [esp + 0x48]
add esp, 0x14
mov dword [esp + 0x10], ebx
test al, 1
je 0x207e4834
mov ecx, dword [ebp + 0x6c]
push ecx
call fcn.207e7a10
add esp, 4
mov dword [esp + 0x10], 5
jmp 0x207e4a53
cmp ebx, esi
je 0x207e4866
cmp ebx, 7
je 0x207e4a4f
cmp ebx, 0x80a
je 0x207e4a4f
cmp ebx, 0xc0a
je 0x207e4a4f
mov dword [esp + 0x10], 5
jmp 0x207e4a53
push 1
mov dword [ebp + 0x90], esi
mov dword [ebp + 0x98], esi
push ebp
mov byte [ebp + 4], 1
mov byte [ebp + 5], 0
mov dword [ebp + 0x94], esi
mov byte [ebp + 0x15], 0
mov dword [ebp + 0x9c], esi
call fcn.207e4a70
mov ebx, eax
add esp, 8
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x207e48e2
and eax, 0xff
cmp eax, 0xd
je 0x207e48b7
cmp eax, 0xa
je 0x207e48b7
cmp eax, 0xb
jne 0x207e4a4f
mov al, byte [ebp + 0xe]
mov dword [ebp + 0x20], ebx
test al, al
jne 0x207e4a4f
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x207e4a4f
push ebp
call fcn.207e3300
add esp, 4
jmp 0x207e4a4f
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x207e4a44
push 0
push ebp
call fcn.207e31e0
mov eax, dword [ebp + 0x20]
add esp, 8
test eax, eax
je 0x207e490d
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x207e4a4f
mov eax, dword [ebp + 0x24]
test eax, eax
jle 0x207e493b
mov eax, dword [ebp + 0x68]
push 0
push 0x18
lea edx, [esp + 0x28]
push 0x10
push edx
push eax
call fcn.207e7a30
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x207e4a53
jmp 0x207e494d
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, 4
lea edi, [esp + 0x20]
lea esi, [ebp + 0xd0]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x207e4a44
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x207e4a44
mov esi, dword [ebp + 0x84]
test esi, esi
je 0x207e4a0f
mov eax, dword [esi + 0x18]
mov edx, dword [esi]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x10]
mov ecx, dword [edx + 0x78]
add edx, 0x78
mov edi, eax
sub edi, esi
cmp esi, ecx
jne 0x207e499d
mov ecx, dword [eax]
mov dword [edx], ecx
cmp esi, dword [edx + 4]
jne 0x207e49a8
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x207e49b8
mov ebx, dword [eax]
mov dword [ecx + edi], ebx
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x207e49c9
mov ebx, dword [eax + 4]
mov dword [ecx + edi + 4], ebx
mov ebx, dword [esp + 0x10]
cmp esi, dword [edx + 8]
jne 0x207e49e4
mov ecx, dword [eax]
test ecx, ecx
je 0x207e49e1
cmp byte [ecx + 0x1e], 0
je 0x207e49e1
mov ecx, dword [ecx + edi]
test ecx, ecx
jne 0x207e49d4
mov dword [edx + 8], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov edx, dword [esi + 0x2c]
push edx
call fcn.207e0930
push esi
call fcn.207e0a40
mov esi, dword [esp + 0x3c]
add esp, 8
test esi, esi
jne 0x207e497f
mov eax, dword [ebp + 0xc8]
xor esi, esi
push eax
mov dword [ebp + 0x88], esi
mov dword [ebp + 0x84], esi
mov dword [ebp + 0x8c], esi
mov dword [ebp + 0xc4], esi
call fcn.207e0a40
add esp, 4
mov dword [ebp + 0x44], esi
mov dword [ebp + 0xc8], esi
mov dword [ebp + 0x48], esi
mov al, byte [ebp + 0xe]
test al, al
jne 0x207e4a4f
mov byte [ebp + 0xe], 1
test ebx, ebx
je 0x207e4a60
push ebp
call fcn.207e3300
mov ebx, dword [esp + 0x14]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret