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

Disassembly:
sub esp, 0xc8
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push esi
mov esi, dword [esp + 0xd4]
xor ebx, ebx
push edi
cmp dword [esi + 0x30], ebx
jne 0x41e2c1
mov eax, dword [esi + 0x3c]
push eax
call fcn.0054af30
add esp, 4
mov ecx, dword [esi]
mov eax, dword [esi + 0x40]
mov ecx, dword [ecx + 0x1a]
lea edx, [esp + 0x10]
push edx
push eax
call ecx
add esp, 8
mov edi, eax
cmp dword [esi + 0x30], ebx
jne 0x41e2e7
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af50
add esp, 4
cmp edi, ebx
je 0x41e315
push edi
call fcn.00435040
push eax
call fcn.004207c0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00409b58
add esp, 0xc8
ret
mov eax, dword [esp + 0x70]
inc word [esi + 0x80]
mov ecx, eax
shr ecx, 2
and ecx, 1
mov edx, eax
mov dword [esi + 0x24], ecx
mov ecx, eax
mov dword [esi + 0x34], eax
shr edx, 1
shr eax, 8
and edx, 1
and ecx, 1
and eax, 1
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x12c], eax
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
cmp dword [esi + 0x130], ebx
je 0x41e366
mov dword [esi + 0x12c], ebx
push ebp
lea ebp, [esi + 0xf9]
mov edi, 0x1f
cmp byte [esp + edi + 0x14], 0x20
jne 0x41e3a0
cmp byte [esp + edi + 0x13], 0x20
jne 0x41e395
cmp byte [esp + edi + 0x12], 0x20
jne 0x41e398
cmp byte [esp + edi + 0x11], 0x20
jne 0x41e39d
sub edi, 4
jns 0x41e372
jmp 0x41e3a0
dec edi
jmp 0x41e3a0
sub edi, 2
jmp 0x41e3a0
sub edi, 3
inc edi
cmp ebp, ebx
jne 0x41e3b7
lea edx, [edi + 1]
push edx
call fcn.00420e30
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41e3cd
cmp edi, ebx
je 0x41e3ca
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.0040dc50
add esp, 0xc
mov byte [edi + ebp], bl
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xac], ecx
mov ecx, dword [esi + 0x13c]
mov dword [esi + 0x7c], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0xb0], edx
push ecx
mov dword [esi + 0xb4], eax
call fcn.004410d0
add esp, 4
cmp dword [esi + 0x20], ebx
jne 0x41e428
mov eax, 1
cmp dword [esp + 0x78], eax
je 0x41e42a
xor eax, eax
push esi
mov dword [esi + 0x2c], eax
call fcn.0041d700
add esp, 4
cmp eax, ebx
jne 0x41e70a
mov eax, dword [esp + 0x78]
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
cmp eax, ebx
jne 0x41e45b
mov dword [esi + 0x5c], 0x320
jmp 0x41e46a
cmp eax, 0x14
jae 0x41e465
mov dword [esi + 0x5c], ebx
jmp 0x41e46a
shr eax, 1
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x38], ebx
lea ebp, [esi + 0x38]
jne 0x41e4e4
cmp dword [esi + 0x30], ebx
jne 0x41e483
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af30
add esp, 4
mov edx, dword [esi + 0x2c]
mov eax, dword [esi]
neg edx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x40]
sbb edx, edx
push fcn.00462430
and edx, 2
or edx, 4
push esi
push edx
mov edx, dword [eax + 0x32]
push ecx
call edx
add esp, 0x14
mov edi, eax
cmp dword [esi + 0x30], ebx
jne 0x41e4bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0054af50
add esp, 4
cmp edi, ebx
je 0x41e4d8
push edi
call fcn.00435040
push eax
call fcn.004207c0
add esp, 8
or eax, 0xffffffff
jmp 0x41e70a
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
jmp 0x41e591
cmp dword [esi + 0x30], ebx
jne 0x41e4f5
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af30
add esp, 4
mov eax, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax + 0x3e]
lea ecx, [esp + 0xb4]
push ecx
push edx
call eax
add esp, 8
cmp eax, 0x30
jne 0x41e520
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [ecx + 0x36]
push edx
call eax
add esp, 4
jmp 0x41e52e
cmp eax, 0xb0
je 0x41e52e
cmp eax, 0xb3
jne 0x41e580
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi]
mov eax, dword [esi + 0x40]
mov ecx, dword [ecx + 0x32]
neg edx
push ebp
sbb edx, edx
push fcn.00462430
and edx, 2
push esi
or edx, 4
push edx
push eax
call ecx
add esp, 0x14
cmp eax, ebx
je 0x41e580
push eax
call fcn.00435040
push eax
call fcn.004207c0
add esp, 8
mov dword [ebp], ebx
cmp dword [esi + 0x30], ebx
jne 0x41e578
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af50
add esp, 4
or eax, 0xffffffff
jmp 0x41e70a
cmp dword [esi + 0x30], ebx
jne 0x41e591
mov eax, dword [esi + 0x3c]
push eax
call fcn.0054af50
add esp, 4
mov ecx, dword [esi + 0x13c]
push ecx
call fcn.00441120
add esp, 4
test eax, eax
jne 0x41e578
cmp dword [esi + 0x14], ebx
jne 0x41e695
cmp dword [esi + 0x28], ebx
je 0x41e690
call fcn.0041dbf0
mov edi, eax
cmp edi, ebx
je 0x41e690
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af30
mov eax, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax + 0x102]
push 0x20
lea ecx, [esp + 0xbc]
push ecx
push edx
call eax
mov ecx, dword [esi + 0x3c]
push ecx
mov ebx, eax
call fcn.0054af50
add esp, 0x14
test ebx, ebx
jne 0x41e625
mov edx, dword [edi + 0x3c]
push edx
call fcn.0054af30
mov eax, dword [edi]
mov edx, dword [edi + 0x38]
mov eax, dword [eax + 0xfe]
push 0x20
lea ecx, [esp + 0xbc]
push ecx
push edx
call eax
mov ecx, dword [edi + 0x3c]
push ecx
call fcn.0054af50
add esp, 0x14
mov edx, dword [edi + 0x3c]
push edx
call fcn.0054af30
mov eax, dword [edi]
mov edx, dword [edi + 0x38]
mov eax, dword [eax + 0x102]
push 0x20
lea ecx, [esp + 0xbc]
push ecx
push edx
call eax
mov ecx, dword [edi + 0x3c]
push ecx
mov ebx, eax
call fcn.0054af50
add esp, 0x14
test ebx, ebx
jne 0x41e685
mov edx, dword [esi + 0x3c]
push edx
call fcn.0054af30
mov eax, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax + 0xfe]
push 0x20
lea ecx, [esp + 0xbc]
push ecx
push edx
call eax
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.0054af50
add esp, 0x14
push edi
call fcn.0041d110
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x41e708
cmp dword [esi + 0x20], ebx
jne 0x41e708
mov edx, dword [esi]
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
push fcn.00462430
push esi
mov dword [esp + 0x1c], ebx
mov edx, dword [edx + 0x32]
push 6
push ecx
call edx
add esp, 0x14
cmp eax, 0xe2
jne 0x41e6c9
mov dword [esi + 0x20], 1
jmp 0x41e708
cmp eax, ebx
jne 0x41e708
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x3e]
lea ecx, [esp + 0xb4]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x41e6f9
test byte [esp + 0xbc], 2
jne 0x41e6f9
mov dword [esi + 0x20], 1
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 0x36]
push edx
call eax
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd4]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0xc8
ret