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

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x20
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x100040f2
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
lea edx, [esp + 0x24]
push edx
push 0
push 5
push 0x11
push 4
call fcn.10038ec5
mov word [esp + 0x2c], 3
movzx ebx, word [esp + 0x2c]
mov eax, 2
cmp ebx, eax
jl 0x10004161
movzx ebx, word [esp + 0x2c]
dec ebx
push ebx
pop eax
mov word [esp + 0x30], ax
jmp 0x1000416e
movzx ebx, word [esp + 0x2c]
inc ebx
push ebx
pop eax
mov word [esp + 0x30], ax
movzx ebx, word [esp + 0x30]
push ebx
mov ebx, 0xf
cmp ebx, dword [esp]
jne 0x10004188
add esp, 4
jmp 0x1000482f
mov ebx, 8
cmp ebx, dword [esp]
jne 0x100041a0
movzx eax, word [esp + 0x34]
push eax
pop eax
mov word [esp + 0x30], ax
jmp 0x100041b7
mov ebx, 2
cmp ebx, dword [esp]
jne 0x100041b7
movzx ebx, word [esp + 0x34]
inc ebx
push ebx
pop eax
mov word [esp + 0x30], ax
pop eax
lea edx, [esp + 0x34]
push edx
push 0
push 5
push 0x11
push 4
call fcn.10038ec5
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp]
pop eax
mov dword [esp + 0x9c], eax
push dword [ebp]
pop eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0
jmp 0x100041f8
mov ebx, dword [esp + 0xa0]
dec ebx
cmp ebx, dword [esp + 0x18]
jl 0x1000427f
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
mov ebp, dword [edx]
shl ebx, 2
push dword [ebp + ebx]
pop eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
shl ebx, 2
mov ebx, dword [ebp + ebx]
and ebx, ebx
je 0x10004275
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
shl ebx, 2
mov ebx, dword [ebp + ebx]
inc ebx
push ebx
mov ebx, dword [esp + 0x20]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x10]
jle 0x1000425c
push dword [esp + 0x1c]
pop eax
mov dword [esp + 0x10], eax
jmp 0x10004275
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x9c]
jge 0x10004275
push dword [esp + 0x1c]
pop eax
mov dword [esp + 0x9c], eax
inc dword [esp + 0x18]
jno 0x100041f8
mov word [esp + 0x3c], 3
movzx ebx, word [esp + 0x3c]
mov eax, 1
cmp ebx, eax
jl 0x100042a3
movzx ebx, word [esp + 0x3c]
dec ebx
push ebx
pop eax
mov word [esp + 0x40], ax
jmp 0x100042b0
movzx ebx, word [esp + 0x3c]
inc ebx
push ebx
pop eax
mov word [esp + 0x40], ax
movzx ebx, word [esp + 0x40]
push ebx
mov ebx, 0xf
cmp ebx, dword [esp]
jne 0x100042ca
add esp, 4
jmp 0x1000482f
mov ebx, 4
cmp ebx, dword [esp]
jne 0x100042e2
movzx eax, word [esp + 0x44]
push eax
pop eax
mov word [esp + 0x40], ax
jmp 0x100042f9
mov ebx, 5
cmp ebx, dword [esp]
jne 0x100042f9
movzx ebx, word [esp + 0x44]
inc ebx
push ebx
pop eax
mov word [esp + 0x40], ax
pop eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
jmp 0x10004314
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jl 0x10004375
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
dec edi
mov ebp, dword [esp + 0x24]
shl edi, 2
add ebx, dword [ebp + edi]
add ebx, ebx
mov dword [esp + 0xc], ebx
push dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
mov ebx, dword [esp + 0x14]
add ebx, ebx
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
shl edi, 2
sub ebx, dword [ebp + edi]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
and ebx, ebx
jge 0x1000436f
jmp 0x10004375
inc dword [esp + 0x18]
jno 0x10004314
mov word [esp + 0x44], 6
movzx ebx, word [esp + 0x44]
mov eax, 3
cmp ebx, eax
jl 0x10004399
movzx ebx, word [esp + 0x44]
dec ebx
push ebx
pop eax
mov word [esp + 0x48], ax
jmp 0x100043a6
movzx ebx, word [esp + 0x44]
inc ebx
push ebx
pop eax
mov word [esp + 0x48], ax
movzx ebx, word [esp + 0x48]
push ebx
mov ebx, 0x12
cmp ebx, dword [esp]
jne 0x100043c0
add esp, 4
jmp 0x1000482f
mov ebx, 8
cmp ebx, dword [esp]
jne 0x100043d8
movzx eax, word [esp + 0x4c]
push eax
pop eax
mov word [esp + 0x48], ax
jmp 0x100043ef
mov ebx, 3
cmp ebx, dword [esp]
jne 0x100043ef
movzx ebx, word [esp + 0x4c]
inc ebx
push ebx
pop eax
mov word [esp + 0x48], ax
pop eax
push dword [esp + 0x24]
call fcn.1003906d
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x10004409
push dword [esp + 0x24]
call fcn.1003907b
mov word [esp + 0x4c], 8
movzx ebx, word [esp + 0x4c]
mov eax, 5
cmp ebx, eax
jl 0x1000442d
movzx ebx, word [esp + 0x4c]
dec ebx
push ebx
pop eax
mov word [esp + 0x50], ax
jmp 0x1000443a
movzx ebx, word [esp + 0x4c]
inc ebx
push ebx
pop eax
mov word [esp + 0x50], ax
movzx ebx, word [esp + 0x50]
push ebx
mov ebx, 0x10
cmp ebx, dword [esp]
jne 0x10004454
add esp, 4
jmp 0x1000482f
mov ebx, 7
cmp ebx, dword [esp]
jne 0x1000446c
movzx eax, word [esp + 0x54]
push eax
pop eax
mov word [esp + 0x50], ax
jmp 0x10004483
mov ebx, 5
cmp ebx, dword [esp]
jne 0x10004483
movzx ebx, word [esp + 0x54]
inc ebx
push ebx
pop eax
mov word [esp + 0x50], ax
pop eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jge 0x100044ae
push dword [esp + 0x34]
call fcn.1003907b
mov eax, 1
jmp 0x1000482f
lea edx, str.proteins
lea ecx, [esp + 0x58]
call fcn.10032008
push dword [esp + 0x14]
pop eax
mov dword [esp + 0x20], eax
mov word [esp + 0x5c], 2
movzx ebx, word [esp + 0x5c]
mov eax, 5
cmp ebx, eax
jl 0x100044ea
movzx ebx, word [esp + 0x5c]
dec ebx
push ebx
pop eax
mov word [esp + 0x60], ax
jmp 0x100044f7
movzx ebx, word [esp + 0x5c]
inc ebx
push ebx
pop eax
mov word [esp + 0x60], ax
movzx ebx, word [esp + 0x60]
push ebx
mov ebx, 0xb
cmp ebx, dword [esp]
jne 0x10004511
add esp, 4
jmp 0x1000482f
mov ebx, 7
cmp ebx, dword [esp]
jne 0x10004529
movzx eax, word [esp + 0x64]
push eax
pop eax
mov word [esp + 0x60], ax
jmp 0x10004540
mov ebx, 3
cmp ebx, dword [esp]
jne 0x10004540
movzx ebx, word [esp + 0x64]
inc ebx
push ebx
pop eax
mov word [esp + 0x60], ax
pop eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
je 0x1000456a
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x10004562
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x10004562
mov eax, 1
jmp 0x10004564
xor eax, eax
and eax, eax
jne 0x1000456a
jmp 0x10004571
mov eax, 1
jmp 0x10004573
xor eax, eax
mov ebx, eax
and ebx, ebx
jne 0x10004686
mov word [esp + 0x64], 3
movzx ebx, word [esp + 0x64]
mov eax, 5
cmp ebx, eax
jl 0x100045a1
movzx ebx, word [esp + 0x64]
dec ebx
push ebx
pop eax
mov word [esp + 0x68], ax
jmp 0x100045ae
movzx ebx, word [esp + 0x64]
inc ebx
push ebx
pop eax
mov word [esp + 0x68], ax
movzx ebx, word [esp + 0x68]
push ebx
mov ebx, 0xd
cmp ebx, dword [esp]
jne 0x100045c8
add esp, 4
jmp 0x1000482f
mov ebx, 8
cmp ebx, dword [esp]
jne 0x100045e0
movzx eax, word [esp + 0x6c]
push eax
pop eax
mov word [esp + 0x68], ax
jmp 0x100045f7
mov ebx, 5
cmp ebx, dword [esp]
jne 0x100045f7
movzx ebx, word [esp + 0x6c]
inc ebx
push ebx
pop eax
mov word [esp + 0x68], ax
pop eax
push dword [esp + 0x34]
call fcn.1003907b
mov eax, 1
jmp 0x1000482f
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x1003f444]
shl ebx, 2
mov eax, dword [ebp + ebx]
inc eax
mov edx, dword [esp + 4]
lea edx, [edx]
push edx
push 0
push 5
push eax
push 4
call fcn.10038ec5
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x1003f444]
shl ebx, 2
mov eax, dword [ebp + ebx]
inc eax
mov edx, dword [esp + 8]
lea edx, [edx]
push edx
push 0
push 5
push eax
push 4
call fcn.10038ec5
mov dword [esp + 0x18], 0
jmp 0x100046ec
mov ebx, dword [esp + 0xa0]
dec ebx
cmp ebx, dword [esp + 0x18]
jl 0x10004791
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
mov ebp, dword [edx]
shl ebx, 2
push dword [ebp + ebx]
pop eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
shl ebx, 2
mov ebx, dword [ebp + ebx]
and ebx, ebx
je 0x10004787
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
shl ebx, 2
push dword [ebp + ebx]
call fcn.10014cd3
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
shl ebx, 2
mov ebx, dword [ebp + ebx]
inc ebx
push ebx
mov ebx, dword [esp + 0x20]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebp, dword [edx]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
push dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
inc dword [esp + 0x18]
jno 0x100046ec
lea edx, str.gauge
lea ecx, [esp + 0x74]
call fcn.10032008
mov word [esp + 0x78], 0xa
movzx ebx, word [esp + 0x78]
mov eax, 5
cmp ebx, eax
jl 0x100047c4
movzx ebx, word [esp + 0x78]
dec ebx
push ebx
pop eax
mov word [esp + 0x7c], ax
jmp 0x100047d1
movzx ebx, word [esp + 0x78]
inc ebx
push ebx
pop eax
mov word [esp + 0x7c], ax
movzx ebx, word [esp + 0x7c]
push ebx
mov ebx, 0x10
cmp ebx, dword [esp]
jne 0x100047e8
add esp, 4
jmp 0x1000482f
mov ebx, 7
cmp ebx, dword [esp]
jne 0x10004803
movzx eax, word [esp + 0x80]
push eax
pop eax
mov word [esp + 0x7c], ax
jmp 0x1000481d
mov ebx, 3
cmp ebx, dword [esp]
jne 0x1000481d
movzx ebx, word [esp + 0x80]
inc ebx
push ebx
pop eax
mov word [esp + 0x7c], ax
pop eax
push dword [esp + 0x34]
call fcn.1003907b
mov eax, dword [esp + 0x20]
jmp 0x1000482f
push dword [esp + 0x74]
call fcn.100397f0
push dword [esp + 0x58]
call fcn.100397f0
push dword [esp + 0x54]
call fcn.100397f0
push eax
push dword [esp + 0x28]
call fcn.10039080
push dword [esp + 0x38]
call fcn.10039080
pop eax
add esp, 0x80
pop edi
pop ebx
pop ebp
ret 0x14