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

Disassembly:
sub esp, 0x10
mov word [esp + 2], 0xfffe
push ebx
push esi
mov ebx, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
push ebp
mov eax, dword [ebx + 0x1c]
push 0xb0
mov dword [esp + 0x20], eax
push edi
call fcn.0040fa10
add esp, 8
mov esi, eax
test esi, esi
je 0x404686
mov word [esi + 4], 0x222
mov word [esi + 6], 0
push edi
call fcn.004b61b0
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x10], eax
mov ax, word [edi + 0xc]
mov word [esi + 0x20], ax
mov dx, word [ecx + 0x166]
mov word [esi + 0x22], dx
mov ax, word [ecx + 0x168]
mov word [esi + 0x24], ax
mov dword [esi + 0x44], ebx
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x48], edx
mov eax, dword [ebx + 0x60]
test eax, eax
mov dword [esi + 0x4c], eax
jne 0x4041d9
mov dword [esi + 0x4c], 0xffffffff
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x58], eax
mov cx, word [ebx + 0x88]
mov word [esi + 0x5c], cx
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4041fe
mov eax, dword [eax]
test eax, eax
je 0x4041fe
mov eax, dword [eax]
mov dword [esi + 0x60], eax
jmp 0x404205
mov dword [esi + 0x60], 0x537e74
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xa4], eax
mov edx, dword [ecx + 0x2c]
mov dword [esi + 0x14], edx
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x98]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x40422d
mov eax, dword [eax]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x1c], ecx
push edi
mov edx, dword [eax + 0x170]
mov dword [esi + 0x28], edx
mov ecx, dword [ebx + 0x68]
mov dword [esi + 0x50], ecx
mov eax, dword [ebx + 0x6c]
mov dword [esi + 0x54], eax
call fcn.004ba5c0
add esp, 4
mov dword [esi + 0x3c], eax
push edi
call fcn.004ba600
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esi + 0x40], eax
mov eax, dword [ecx + 0xc]
cmp eax, 0xb
jne 0x4042d5
xor ebp, ebp
cmp dword [str.Verity__Inc._Version_2.2.2], ebp
je 0x404288
mov eax, 0x53ca00
add eax, 4
inc ebp
cmp dword [eax], 0
jne 0x40427f
push 0x3e
mov eax, ebp
shl ax, 2
mov ecx, dword [edi + 0x44]
push eax
push ecx
push edi
call fcn.004aa140
add esp, 0x10
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0xc], eax
je 0x404686
mov dword [esp + 0x14], eax
test ebp, ebp
jle 0x4042ca
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + 0x53ca00]
mov edx, dword [esi + 0xc]
mov dword [edx + eax], ecx
add eax, 4
dec ebp
jne 0x4042b8
mov ax, word [esp + 0x14]
mov word [esi + 8], ax
jmp 0x4042f2
cmp eax, 0xffffff9d
jne 0x4042f2
push 1
push edi
call fcn.004b93e0
add esp, 8
push 1
push 0
push edi
call fcn.004ab340
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x10], 0xb
jne 0x404348
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ax, word [ecx + 0x13a]
mov edx, dword [ecx + 0x13c]
push edx
push eax
lea edx, [esp + 0x1c]
push edx
push 0x17
push edi
call fcn.0040fa70
add esp, 0x14
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x2c], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x14], 0xb
jne 0x404394
mov dx, word [ebx + 0x4a]
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x4c]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push 0x17
push edi
call fcn.0040fa70
add esp, 0x14
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x64], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x68], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 0xb
jne 0x4043e0
mov dx, word [ebx + 0x42]
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x44]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push 0x17
push edi
call fcn.0040fa70
add esp, 0x14
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x6c], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x70], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x28], 0xb
jne 0x404453
lea eax, [esp + 0x14]
mov ebp, dword [ebx + 0x28]
test ebp, ebp
mov dword [eax], 0
mov dword [eax + 4], 0
je 0x404418
lea eax, [esp + 0x14]
push ebp
push eax
push edi
call fcn.0040fc00
add esp, 0xc
mov ebp, dword [ebp + 0x20]
test ebp, ebp
jne 0x404402
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x134]
cmp ebx, eax
je 0x404443
mov ebp, dword [eax + 0x28]
test ebp, ebp
je 0x404443
lea eax, [esp + 0x14]
push ebp
push eax
push edi
call fcn.0040fc00
add esp, 0xc
mov ebp, dword [ebp + 0x20]
test ebp, ebp
jne 0x40442d
mov ax, word [esp + 0x16]
mov word [esi + 0x34], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x38], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x2c], 0xb
jne 0x4044a1
lea eax, [esp + 0x14]
mov ebp, dword [ebx + 0x28]
test ebp, ebp
mov dword [eax], 0
mov dword [eax + 4], 0
je 0x40448b
lea eax, [esp + 0x14]
push ebp
push eax
push edi
call fcn.0040fc00
add esp, 0xc
mov ebp, dword [ebp + 0x20]
test ebp, ebp
jne 0x404475
mov ax, word [esp + 0x16]
mov word [esi + 0x8c], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x90], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x30], 0xb
jne 0x404504
lea eax, [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov ax, word [ebx + 0x52]
dec eax
js 0x4044ee
lea ebp, [eax*4]
mov eax, dword [ebx + 0x54]
lea edx, [esp + 0x14]
mov ecx, dword [eax + ebp]
push ecx
push edx
push edi
call fcn.0040fc00
add esp, 0xc
test eax, eax
jne 0x40468d
sub ebp, 4
jns 0x4044cc
mov ax, word [esp + 0x16]
mov word [esi + 0x94], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x98], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x1c], 0xb
jne 0x404545
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x2c]
push eax
push ecx
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040fba0
add esp, 0xc
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x74], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x78], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x20], 0xb
jne 0x404589
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040fba0
add esp, 0xc
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x7c], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x80], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x24], 0xb
jne 0x4045ef
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
mov ecx, dword [ebx + 0x30]
push ecx
mov dword [eax], ebp
push edi
mov dword [eax + 4], ebp
call fcn.0040fba0
add esp, 0xc
test eax, eax
jne 0x40468d
xor ecx, ecx
cmp word [esp + 0x16], bp
jbe 0x4045d9
mov eax, dword [esp + 0x18]
inc ecx
add eax, ebp
add ebp, 4
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
mov dword [eax], edx
xor eax, eax
mov ax, word [esp + 0x16]
cmp eax, ecx
jg 0x4045bd
mov ax, word [esp + 0x16]
mov word [esi + 0x84], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x88], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x34], 0xb
jne 0x404632
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x38]
push eax
push ecx
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040fba0
add esp, 0xc
test eax, eax
jne 0x40468d
mov ax, word [esp + 0x16]
mov word [esi + 0x9c], ax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xa0], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x38], 0xb
jne 0x404670
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x34], 0
jne 0x404654
push eax
call fcn.004096f0
add esp, 4
test ax, ax
jne 0x40468d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov ax, word [eax + 0x4e]
mov word [esi + 0xa8], ax
mov edx, dword [ecx + 0x50]
mov dword [esi + 0xac], edx
cmp dword [esp + 0x30], 0
mov word [esp + 0x12], 0
je 0x40468d
mov eax, dword [esp + 0x30]
mov dword [eax], esi
jmp 0x40468d
mov word [esp + 0x12], 0xffea
cmp word [esp + 0x12], 0
je 0x4046af
test esi, esi
je 0x4046af
push esi
push edi
call fcn.00404970
add esp, 8
push esi
push edi
xor esi, esi
call fcn.0040fa50
add esp, 8
cmp dword [esp + 0x30], 0
jne 0x4046d8
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], 0
jne 0x4046d8
test esi, esi
je 0x4046d8
push esi
push edi
call fcn.00404970
add esp, 8
push esi
push edi
call fcn.0040fa50
add esp, 8
mov ax, word [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret