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

Disassembly:
sub esp, 0x34
push ebp
push esi
mov esi, eax
movzx eax, word [esi + 0x70]
push edi
push eax
mov ax, word [esi + 0x74]
call fcn.0043d680
movzx ecx, word [esi + 0x74]
movzx edx, word [esi + 0x70]
push 0x828282
push ecx
push edx
xor ecx, ecx
xor edx, edx
call fcn.0043d940
movzx eax, word [esi + 0x74]
mov dx, word [esi + 0x70]
sub ax, 2
movzx ecx, ax
sub dx, 2
push 0x5a5a5a
movzx eax, dx
push ecx
mov ecx, 1
push eax
mov edx, ecx
call fcn.0043d940
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x74]
sub ecx, eax
sub edi, eax
xor ebp, ebp
sub ecx, 2
sub edi, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0xc], ebp
cmp dword [esi + 0x80], ebp
jle 0x41b2e2
mov dword [esp + 0x2c], ebp
push ebx
lea esp, [esp]
mov ecx, dword [esi + 0x80]
mov eax, ebp
cdq
idiv ecx
mov edx, dword [esi + 0x78]
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [eax + edx + 1]
mov dword [esp + 0x18], eax
lea eax, [edi + ebp]
cdq
idiv ecx
inc eax
cmp dword [esi + 0x7c], ebx
jle 0x41b2c6
mov ecx, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x1c], eax
add eax, 0xfffffffe
inc ecx
movzx edx, ax
movzx eax, cx
xor edi, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edi
mov edi, edi
mov ecx, dword [esi + 0x7c]
mov eax, edi
cdq
idiv ecx
mov edx, dword [esi + 0x78]
lea ebp, [eax + edx + 1]
mov eax, dword [esp + 0x28]
add eax, edi
cdq
idiv ecx
mov dword [esp + 0x34], ebp
cmp ebx, dword [esi + 0x84]
jg 0x41b1a8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 0xe6e6e6
cmp ecx, dword [esi + 0x88]
jle 0x41b1b0
mov dword [esp + 0x20], 0x828282
movzx edx, word [esi + 0x50]
lea ebx, [eax + 1]
sub ebx, ebp
movzx ecx, bx
movzx eax, bp
add ecx, eax
cmp ecx, edx
jg 0x41b20e
movzx edi, word [esp + 0x1c]
movzx ecx, word [esp + 0x18]
movzx ebp, word [esi + 0x52]
add edi, ecx
cmp edi, ebp
jg 0x41b20e
imul ecx, edx
mov edx, dword [esi + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x1c]
lea edx, [edx + ecx*4]
xor ecx, ecx
cmp cx, ax
jae 0x41b20e
movzx ebp, ax
xor eax, eax
cmp ax, bx
jae 0x41b204
mov eax, dword [esp + 0x20]
movzx ecx, bx
mov edi, edx
rep stosd dword es:[edi], eax
dec ebp
movzx ecx, word [esi + 0x50]
lea edx, [edx + ecx*4]
jne 0x41b1f2
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x84]
jg 0x41b22e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0xb4b4b4
cmp eax, dword [esi + 0x88]
jle 0x41b236
mov dword [esp + 0x20], 0x828282
mov ecx, dword [esp + 0x34]
movzx edi, word [esi + 0x50]
add ebx, 0xfffffffe
movzx eax, bx
inc ecx
movzx edx, cx
movzx ebx, ax
mov dword [esp + 0x3c], eax
lea eax, [ebx + edx]
cmp eax, edi
jg 0x41b2a0
movzx ecx, word [esp + 0x38]
movzx eax, word [esp + 0x24]
movzx ebp, word [esi + 0x52]
add eax, ecx
cmp eax, ebp
jg 0x41b2a0
mov eax, dword [esp + 0x24]
imul ecx, edi
add ecx, edx
mov edx, dword [esi + 0x4c]
lea edx, [edx + ecx*4]
xor ecx, ecx
cmp cx, ax
jae 0x41b2a0
movzx ebp, ax
xor eax, eax
cmp ax, word [esp + 0x3c]
jae 0x41b296
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov edi, edx
rep stosd dword es:[edi], eax
dec ebp
movzx ecx, word [esi + 0x50]
lea edx, [edx + ecx*4]
jne 0x41b283
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], edi
cmp ebx, dword [esi + 0x7c]
jl 0x41b170
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
inc eax
add ebp, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebp
cmp eax, dword [esi + 0x80]
jl 0x41b120
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x34
ret