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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47c608
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x49d7a0]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x49d7a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edi, ecx
je 0x4148d1
mov eax, 1
mov esi, ebx
call fcn.00416180
mov ecx, dword [ebx + 4]
add ecx, dword [ebx + 0xc]
mov byte [ecx], 3
add dword [ebx + 0xc], 1
lea edx, [esp + 0x24]
push edx
mov ecx, edi
mov dword [esp + 0x28], vtable.Variant.0
call fcn.0040f2a0
mov dword [esp + 0x90], 0
mov esi, dword [0x4a2670]
lea ecx, [esp + 0xc]
call fcn.004076e0
cmp dword [0x4a2670], esi
ja 0x41490f
cmp esi, dword [0x4a2674]
jbe 0x414914
call fcn.0043c2d0
mov dword [esp + 0xc], 0x4a266c
mov dword [esp + 0x10], esi
mov esi, dword [0x4a2674]
lea ecx, [esp + 0x14]
call fcn.004076e0
cmp dword [0x4a2670], esi
ja 0x41493f
cmp esi, dword [0x4a2674]
jbe 0x414944
call fcn.0043c2d0
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x14], 0x4a266c
mov dword [esp + 0x18], esi
je 0x41495f
cmp eax, 0x4a266c
je 0x414968
call fcn.0043c2d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
je 0x414ab7
test eax, eax
jne 0x414983
call fcn.0043c2d0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 8]
jb 0x414991
call fcn.0043c2d0
mov eax, dword [esp + 0x10]
push eax
lea edi, [esp + 0x28]
call fcn.0040eea0
test al, al
je 0x414a8f
cmp dword [esp + 0xc], 0
jne 0x4149b3
call fcn.0043c2d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx + 8]
jb 0x4149c9
call fcn.0043c2d0
mov eax, dword [esp + 0x10]
mov edi, eax
mov eax, dword [eax + 0x14]
push eax
call dword [0x47e6c0]
movzx edx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], edx
call fcn.00416180
test al, al
je 0x4149fe
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [esp + 0x1c]
mov word [eax], cx
add dword [ebx + 0xc], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00401fd0
mov ecx, ebx
call fcn.00416090
cmp dword [esp + 0xc], 0
jne 0x414a20
call fcn.0043c2d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x414a32
call fcn.0043c2d0
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ead0
mov ecx, dword [esp + 0x20]
push eax
push ebx
call 0x415de0
test al, al
je 0x414c6f
cmp dword [esp + 0xc], 0
jne 0x414a5f
call fcn.0043c2d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x414a71
call fcn.0043c2d0
mov eax, dword [esp + 0x2c]
cmp eax, 0x12
je 0x414a7f
cmp eax, 0x13
jne 0x414a8f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
add ecx, 0x1c
call fcn.0040f5a0
cmp dword [esp + 0xc], 0
jne 0x414a9b
call fcn.0043c2d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
cmp ecx, dword [edx + 8]
jb 0x414aad
call fcn.0043c2d0
add dword [esp + 0x10], 0x1c
jmp 0x414920
lea esi, [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.0040f120
jmp 0x414ad0
lea esi, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.0040f1a0
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414aeb
cmp eax, dword [esi]
je 0x414af4
call fcn.0043c2d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 4]
je 0x414c8f
test eax, eax
jne 0x414b0e
call fcn.0043c2d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 4]
jne 0x414b1c
call fcn.0043c2d0
mov eax, dword [esp + 0x18]
add eax, 0x10
push eax
lea ecx, [esp + 0x68]
call fcn.00401fd0
mov byte [esp + 0x90], 1
cmp dword [esp + 0x78], 0xa
jne 0x414bc6
lea ecx, [esp + 0x64]
call fcn.004025e0
cmp byte [eax], 0x30
jne 0x414bc6
cmp dword [esp + 0x78], 1
jae 0x414b5a
call fcn.0043c2d0
lea ecx, [esp + 0x64]
call fcn.004025e0
add eax, 1
cmp byte [eax], 0x78
jne 0x414bc6
push 0x10
push 0
lea ecx, [esp + 0x6c]
call fcn.00402030
push eax
call fcn.00441793
add esp, 0xc
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str._I32u
call fcn.00402700
lea edi, [esp + 0x68]
call fcn.00416230
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 2
call fcn.004021d0
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.00402010
mov eax, dword [esp + 0x78]
push eax
call dword [0x47e6c0]
movzx ecx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], ecx
call fcn.00416180
test al, al
je 0x414bfa
mov edx, dword [ebx + 4]
add edx, dword [ebx + 0xc]
mov ax, word [esp + 0x1c]
mov word [edx], ax
add dword [ebx + 0xc], 2
sub esp, 0x1c
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00401fd0
mov ecx, ebx
call fcn.00416090
cmp dword [esp + 0x14], 0
jne 0x414c23
call fcn.0043c2d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 4]
jne 0x414c35
call fcn.0043c2d0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x30
push edx
push ebx
call 0x415de0
test al, al
lea ecx, [esp + 0x64]
je 0x414c6a
mov byte [esp + 0x90], 0
call fcn.00402010
lea esi, [esp + 0x14]
call fcn.0040daf0
jmp 0x414ad0
call fcn.00402010
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], vtable.Variant.0
call fcn.0040e210
xor al, al
jmp 0x414cda
mov eax, 3
mov esi, ebx
call fcn.00416180
test al, al
je 0x414cbc
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [0x49ecdc]
mov word [eax], cx
mov dl, byte [0x49ecde]
mov byte [eax + 2], dl
add dword [ebx + 0xc], 3
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], vtable.Variant.0
call fcn.0040e210
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0043bd9a
mov esp, ebp
pop ebp
ret 8